[gnome-clocks] Update select button sensitivity on page change



commit 923b47366c979a00e35c25c3ce3997be3e1cc9dc
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Oct 7 10:19:18 2012 +0200

    Update select button sensitivity on page change

 gnomeclocks/app.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index 7783597..42551ab 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -281,6 +281,8 @@ class ClocksToolbar(Gtk.Toolbar):
     @GObject.Signal(arg_types=(Clock,))
     def view_clock(self, view):
         self.current_view = view
+        if view.has_selection_mode:
+            self.select_button.set_sensitive(view.can_select)
 
     def activate_view(self, view):
         if view is not self.current_view:



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