[gnome-control-center] background: Remove code for impossible situation



commit 9ac7a0aa32ccf946428673a1a5a2c67ae8aad4fa
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 14 11:02:22 2011 +0000

    background: Remove code for impossible situation
    
    We can never have placement be "none" as we create new items
    with "scaled" by default. So just set "zoom" all the time.

 panels/background/bg-pictures-source.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c
index 2a1f7c4..1ca2b0b 100644
--- a/panels/background/bg-pictures-source.c
+++ b/panels/background/bg-pictures-source.c
@@ -228,10 +228,9 @@ file_info_async_ready (GObject      *source,
           g_object_set (G_OBJECT (item),
 			"flags", CC_BACKGROUND_ITEM_HAS_URI | CC_BACKGROUND_ITEM_HAS_SHADING,
 			"shading", G_DESKTOP_BACKGROUND_SHADING_SOLID,
+			"placement", G_DESKTOP_BACKGROUND_STYLE_ZOOM,
 			NULL);
 
-          if (cc_background_item_get_placement (item) == G_DESKTOP_BACKGROUND_STYLE_NONE)
-            g_object_set (G_OBJECT (item), "placement", G_DESKTOP_BACKGROUND_STYLE_ZOOM, NULL);
           g_object_set_data (G_OBJECT (file), "item", item);
           g_file_read_async (file, 0, NULL, picture_opened_for_read, bg_source);
           g_object_unref (file);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]