[gnome-control-center] background: Remove some dead code
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Remove some dead code
- Date: Fri, 11 Feb 2011 03:53:57 +0000 (UTC)
commit 73798da68838fbdf309fca54a72d1cb6b95deab8
Author: Bastien Nocera <hadess hadess net>
Date: Fri Feb 11 03:19:09 2011 +0000
background: Remove some dead code
panels/background/cc-background-item.c | 49 --------------------------------
1 files changed, 0 insertions(+), 49 deletions(-)
---
diff --git a/panels/background/cc-background-item.c b/panels/background/cc-background-item.c
index 414af55..034d667 100644
--- a/panels/background/cc-background-item.c
+++ b/panels/background/cc-background-item.c
@@ -87,55 +87,6 @@ static void cc_background_item_finalize (GObject *object
G_DEFINE_TYPE (CcBackgroundItem, cc_background_item, G_TYPE_OBJECT)
-#if 0
-static GConfEnumStringPair placement_lookup[] = {
- { GNOME_BG_PLACEMENT_CENTERED, "centered" },
- { GNOME_BG_PLACEMENT_FILL_SCREEN, "stretched" },
- { GNOME_BG_PLACEMENT_SCALED, "scaled" },
- { GNOME_BG_PLACEMENT_ZOOMED, "zoom" },
- { GNOME_BG_PLACEMENT_TILED, "wallpaper" },
- { 0, NULL }
-};
-
-static GConfEnumStringPair shading_lookup[] = {
- { GNOME_BG_COLOR_SOLID, "solid" },
- { GNOME_BG_COLOR_H_GRADIENT, "horizontal-gradient" },
- { GNOME_BG_COLOR_V_GRADIENT, "vertical-gradient" },
- { 0, NULL }
-};
-
-static const char *
-placement_to_string (GnomeBGPlacement type)
-{
- return gconf_enum_to_string (placement_lookup, type);
-}
-
-static const char *
-shading_to_string (GnomeBGColorType type)
-{
- return gconf_enum_to_string (shading_lookup, type);
-}
-
-static GnomeBGPlacement
-string_to_placement (const char *option)
-{
- int i = GNOME_BG_PLACEMENT_SCALED;
- if (option != NULL) {
- gconf_string_to_enum (placement_lookup, option, &i);
- }
- return i;
-}
-
-static GnomeBGColorType
-string_to_shading (const char *shading)
-{
- int i = GNOME_BG_COLOR_SOLID;
- if (shading != NULL) {
- gconf_string_to_enum (shading_lookup, shading, &i);
- }
- return i;
-}
-#endif
static GEmblem *
get_slideshow_icon (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]