[rygel] ui: Initialize the sensitivity of plugin widgets



commit e42152f2ceaa1b072010ae555d73b1ee78f1a1dd
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Sep 28 02:08:04 2009 +0300

    ui: Initialize the sensitivity of plugin widgets
    
    Initialize the sensitivity of plugin widgets at startup.

 src/ui/rygel-media-export-pref-section.vala |    3 +++
 src/ui/rygel-tracker-pref-section.vala      |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/rygel-media-export-pref-section.vala b/src/ui/rygel-media-export-pref-section.vala
index 7e07135..59cb5ae 100644
--- a/src/ui/rygel-media-export-pref-section.vala
+++ b/src/ui/rygel-media-export-pref-section.vala
@@ -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 () {
diff --git a/src/ui/rygel-tracker-pref-section.vala b/src/ui/rygel-tracker-pref-section.vala
index 5ca4e76..ad07b49 100644
--- a/src/ui/rygel-tracker-pref-section.vala
+++ b/src/ui/rygel-tracker-pref-section.vala
@@ -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 () {



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