[gnome-control-center] background: Set the flags for the colors source



commit cb2a53141de03c978e0a1a9777056d8781ea4caf
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Feb 11 03:49:23 2011 +0000

    background: Set the flags for the colors source

 panels/background/bg-colors-source.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/panels/background/bg-colors-source.c b/panels/background/bg-colors-source.c
index a182467..3fd96e3 100644
--- a/panels/background/bg-colors-source.c
+++ b/panels/background/bg-colors-source.c
@@ -63,16 +63,23 @@ bg_colors_source_init (BgColorsSource *self)
 
   for (i = 0; i < G_N_ELEMENTS (items); i++)
     {
+      CcBackgroundItemFlags flags;
       CcBackgroundItem *item;
       GIcon *pixbuf;
 
       item = cc_background_item_new (NULL);
+      flags = CC_BACKGROUND_ITEM_HAS_PCOLOR |
+	      CC_BACKGROUND_ITEM_HAS_SCOLOR |
+	      CC_BACKGROUND_ITEM_HAS_SHADING |
+	      CC_BACKGROUND_ITEM_HAS_FNAME;
+      /* It does have a filename, it's "none" */
 
       g_object_set (G_OBJECT (item),
 		    "name", _(items[i].name),
 		    "primary-color", PCOLOR,
 		    "secondary-color", SCOLOR,
 		    "shading", items[i].type,
+		    "flags", flags,
 		    NULL);
 
       /* insert the item into the liststore */



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