ui: Initialize the sensitivity of plugin widgets
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sun, 27 Sep 2009 23:08:04 +0000 (02:08 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sun, 27 Sep 2009 23:08:04 +0000 (02:08 +0300)
Initialize the sensitivity of plugin widgets at startup.

src/ui/rygel-media-export-pref-section.vala
src/ui/rygel-tracker-pref-section.vala

index 7e07135..59cb5ae 100644 (file)
@@ -80,6 +80,9 @@ public class Rygel.MediaExportPrefSection : Rygel.PluginPrefSection {
         button = (Button) builder.get_object (CLEAR_BUTTON);
         button.clicked += this.on_clear_button_clicked;
         this.widgets.add (button);
+
+        // Initialize the sensitivity of all widgets
+        this.reset_widgets_sensitivity ();
     }
 
     public override void save () {
index 5ca4e76..ad07b49 100644 (file)
@@ -61,6 +61,9 @@ public class Rygel.TrackerPrefSection : Rygel.PluginPrefSection {
             this.pictures_check.active = config.get_bool (this.name,
                                                           PICTURES_KEY);
         } catch (Error err) {}
+
+        // Initialize the sensitivity of all widgets
+        this.reset_widgets_sensitivity ();
     }
 
     public override void save () {