From: Zeeshan Ali (Khattak) Date: Sun, 27 Sep 2009 23:08:04 +0000 (+0300) Subject: ui: Initialize the sensitivity of plugin widgets X-Git-Tag: RYGEL_0_4_2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e42152f2ceaa1b072010ae555d73b1ee78f1a1dd;p=profile%2Fivi%2Frygel.git ui: Initialize the sensitivity of plugin widgets Initialize the sensitivity of plugin widgets at startup. --- 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 () {