[rygel] ui: Separate method to reset sensitivity
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] ui: Separate method to reset sensitivity
- Date: Sun, 27 Sep 2009 23:25:13 +0000 (UTC)
commit 3312dcd6979025d1bfdcf80fb686b38d9e0cf50a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Sep 28 02:06:49 2009 +0300
ui: Separate method to reset sensitivity
Separate method to reset sensitivity of plugin widgets.
src/ui/rygel-plugin-pref-section.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/rygel-plugin-pref-section.vala b/src/ui/rygel-plugin-pref-section.vala
index d552e8d..f4e2471 100644
--- a/src/ui/rygel-plugin-pref-section.vala
+++ b/src/ui/rygel-plugin-pref-section.vala
@@ -79,12 +79,16 @@ public class Rygel.PluginPrefSection : PreferencesSection {
this.config.set_string (this.name, UserConfig.TITLE_KEY, title);
}
- protected void on_enabled_check_toggled (CheckButton enabled_check) {
+ protected void reset_widgets_sensitivity () {
this.title_entry.sensitive =
- this.title_label.sensitive = enabled_check.active;
+ this.title_label.sensitive = this.enabled_check.active;
foreach (var widget in this.widgets) {
widget.sensitive = enabled_check.active;
}
}
+
+ private void on_enabled_check_toggled (CheckButton enabled_check) {
+ this.reset_widgets_sensitivity ();
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]