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.
This commit is contained in:
Bastien Nocera 2011-02-14 11:02:22 +00:00
parent 87f05ef0ed
commit 9ac7a0aa32

View file

@ -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);