From e42152f2ceaa1b072010ae555d73b1ee78f1a1dd Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Mon, 28 Sep 2009 02:08:04 +0300 Subject: [PATCH] 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(+) 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 () { -- 2.7.4