[Pkg-bazaar-commits] ./bzr-gtk/unstable r389: Switched to using the Previous/Next Revision actions to create menu items.

Daniel Schierbeck daniel.schierbeck at gmail.com
Fri Apr 10 07:50:11 UTC 2009


------------------------------------------------------------
revno: 389
committer: Daniel Schierbeck <daniel.schierbeck at gmail.com>
branch nick: menubar
timestamp: Fri 2007-11-09 18:19:11 +0100
message:
  Switched to using the Previous/Next Revision actions to create menu items.
modified:
  viz/branchwin.py
-------------- next part --------------
=== modified file 'viz/branchwin.py'
--- a/viz/branchwin.py	2007-11-09 17:17:25 +0000
+++ b/viz/branchwin.py	2007-11-09 17:19:11 +0000
@@ -167,18 +167,8 @@
         go_menuitem = gtk.MenuItem("_Go")
         go_menuitem.set_submenu(go_menu)
         
-        next_image = gtk.Image()
-        next_image.set_from_stock(gtk.STOCK_GO_UP, gtk.ICON_SIZE_MENU)
-        self.go_menu_next = gtk.ImageMenuItem("_Next Revision")
-        self.go_menu_next.set_image(next_image)
-        self.next_rev_action.connect_proxy(self.go_menu_next)
-
-        prev_image = gtk.Image()
-        prev_image.set_from_stock(gtk.STOCK_GO_DOWN, gtk.ICON_SIZE_MENU)
-        self.go_menu_prev = gtk.ImageMenuItem("_Previous Revision")
-        self.go_menu_prev.set_image(prev_image)
-        self.go_menu_prev.set_accel_path("<viz>/Go/Previous Revision")
-        self.prev_rev_action.connect_proxy(self.go_menu_prev)
+        self.go_menu_next = self.next_rev_action.create_menu_item()
+        self.go_menu_prev = self.prev_rev_action.create_menu_item()
 
         tags_menu = gtk.Menu()
         go_menu_tags = gtk.MenuItem("_Tags")



More information about the Pkg-bazaar-commits mailing list