[gnome-control-center] background: Come up with 'Wallpapers' selected and displayed



commit c55ec39f818a36cc020df09597c6b933b2ba7073
Author: Kalev Lember <kalev smartlink ee>
Date:   Thu Sep 23 20:48:20 2010 +0300

    background: Come up with 'Wallpapers' selected and displayed
    
    https://bugzilla.gnome.org/show_bug.cgi?id=630417

 panels/background/background.ui         |    1 -
 panels/background/cc-background-panel.c |    3 +++
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/background.ui b/panels/background/background.ui
index b4cc7c6..bfe0c9d 100644
--- a/panels/background/background.ui
+++ b/panels/background/background.ui
@@ -70,7 +70,6 @@
           <object class="GtkComboBox" id="sources-combobox">
             <property name="visible">True</property>
             <property name="model">sources-liststore</property>
-            <property name="active">0</property>
             <child>
               <object class="GtkCellRendererText" id="cellrenderertext2"/>
               <attributes>
diff --git a/panels/background/cc-background-panel.c b/panels/background/cc-background-panel.c
index 2629b4b..200c141 100644
--- a/panels/background/cc-background-panel.c
+++ b/panels/background/cc-background-panel.c
@@ -676,6 +676,9 @@ cc_background_panel_init (CcBackgroundPanel *self)
   widget = WID ("sources-combobox");
   g_signal_connect (widget, "changed", G_CALLBACK (source_changed_cb), priv);
 
+  /* select first item */
+  gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
+
   /* connect to the background iconview change signal */
   widget = WID ("backgrounds-iconview");
   g_signal_connect (widget, "selection-changed",



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