[rygel] ui: Set sensitivity of buttons too



commit f6f114f25bae2779da8616783f7680d1fb8c3f24
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Sep 28 00:50:22 2009 +0300

    ui: Set sensitivity of buttons too
    
    Sensitivity of buttons should be attached to status of MediaExport checkbox.

 src/ui/rygel-media-export-pref-section.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/rygel-media-export-pref-section.vala b/src/ui/rygel-media-export-pref-section.vala
index 2393f1d..2dc7421 100644
--- a/src/ui/rygel-media-export-pref-section.vala
+++ b/src/ui/rygel-media-export-pref-section.vala
@@ -108,6 +108,9 @@ public class Rygel.MediaExportPrefSection : Rygel.PluginPrefSection {
         base.on_enabled_check_toggled (enabled_check);
 
         this.treeview.sensitive = enabled_check.active;
+        foreach (var button in this.buttons) {
+            button.sensitive = enabled_check.active;
+        }
     }
 
     private void on_add_button_clicked (Button button) {



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