[gnome-games/gnome-3-0] sudoku: use set_related_action



commit 5d9c2460311124cfbdb518dfad9db533f8f8fd24
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Wed Apr 6 22:56:05 2011 +0200

    sudoku: use set_related_action

 gnome-sudoku/src/lib/main.py |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index 8d9c0ed..c8389de 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -794,12 +794,15 @@ class TrackerBox (Gtk.VBox):
               ),
              ]
             )
-        a = self.tracker_actions.get_action('Remove')
-        a.connect_proxy(self.builder.get_object('RemoveTrackerButton'))
-        a = self.tracker_actions.get_action('Hide')
-        a.connect_proxy(self.builder.get_object('HideTrackerButton'))
-        a = self.tracker_actions.get_action('Apply')
-        a.connect_proxy(self.builder.get_object('ApplyTrackerButton'))
+        o = self.builder.get_object('RemoveTrackerButton')
+        o.set_related_action(self.tracker_actions.get_action('Remove'))
+
+        o = self.builder.get_object('HideTrackerButton')
+        o.set_related_action(self.tracker_actions.get_action('Hide'))
+
+        o = self.builder.get_object('ApplyTrackerButton')
+        o.set_related_action(self.tracker_actions.get_action('Apply'))
+
         self.builder.get_object('AddTrackerButton').connect('clicked',
                                                           self.add_tracker)
         # Default to insensitive (they only become sensitive once a tracker is added)



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