[nanny] Fix unsensitive bug at spinbuttons



commit 1e1fc6790b837640f0436dc1b158bc453d48541e
Author: Roberto Majadas <roberto majadas openshine com>
Date:   Tue May 11 20:18:21 2010 +0200

    Fix unsensitive bug at spinbuttons

 client/gnome/admin/src/AdminConsole.py |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/client/gnome/admin/src/AdminConsole.py b/client/gnome/admin/src/AdminConsole.py
index 685e953..6dce006 100644
--- a/client/gnome/admin/src/AdminConsole.py
+++ b/client/gnome/admin/src/AdminConsole.py
@@ -115,15 +115,31 @@ class AdminConsole:
         self.apply_button.set_sensitive(lock_status)
 
         self.session_hoursday_checkbutton.set_sensitive(lock_status)
-        self.session_hoursday_spinbutton.set_sensitive(lock_status)
+        if lock_status == True:
+            self.session_hoursday_spinbutton.set_sensitive(self.session_hoursday_checkbutton.get_active())
+        else:
+            self.session_hoursday_spinbutton.set_sensitive(lock_status)
+
         self.browser_configure_proxy_button.set_sensitive(lock_status)
         self.browser_use_proxy_checkbutton.set_sensitive(lock_status)
         self.browser_hoursday_checkbutton.set_sensitive(lock_status)
-        self.browser_hoursday_spinbutton.set_sensitive(lock_status)
+        if lock_status == True:
+            self.browser_hoursday_spinbutton.set_sensitive(self.browser_hoursday_checkbutton.get_active())
+        else:
+            self.browser_hoursday_spinbutton.set_sensitive(lock_status)
+        
         self.mail_hoursday_checkbutton.set_sensitive(lock_status)
         self.mail_hoursday_spinbutton.set_sensitive(lock_status)
+        if lock_status == True:
+            self.mail_hoursday_spinbutton.set_sensitive(self.mail_hoursday_checkbutton.get_active())
+        else:
+            self.mail_hoursday_spinbutton.set_sensitive(lock_status)
+
         self.im_hoursday_checkbutton.set_sensitive(lock_status)
-        self.im_hoursday_spinbutton.set_sensitive(lock_status)
+        if lock_status == True:
+            self.im_hoursday_spinbutton.set_sensitive(self.im_hoursday_checkbutton.get_active())
+        else:
+            self.im_hoursday_spinbutton.set_sensitive(lock_status)
 
         self.session_schedule_widget.set_sensitive(lock_status)
         self.browser_schedule_widget.set_sensitive(lock_status)



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