[gnome-control-center] background: Set the shading for pictures
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Set the shading for pictures
- Date: Mon, 14 Feb 2011 09:44:57 +0000 (UTC)
commit 329aabf0b19662d2366fd4932cd1765e0f1d38bf
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 14 08:42:32 2011 +0000
background: Set the shading for pictures
panels/background/bg-pictures-source.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c
index 57498fa..2c55eac 100644
--- a/panels/background/bg-pictures-source.c
+++ b/panels/background/bg-pictures-source.c
@@ -233,7 +233,10 @@ file_info_async_ready (GObject *source,
uri = g_file_get_uri (file);
item = cc_background_item_new (uri);
g_free (uri);
- g_object_set (G_OBJECT (item), "flags", CC_BACKGROUND_ITEM_HAS_URI, NULL);
+ g_object_set (G_OBJECT (item),
+ "flags", CC_BACKGROUND_ITEM_HAS_URI | CC_BACKGROUND_ITEM_HAS_SHADING,
+ "shading", G_DESKTOP_BACKGROUND_SHADING_SOLID,
+ 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]