[Pkg-bazaar-commits] ./bzr-gtk/unstable r382: Made accelerator for Previous Revision work.
Daniel Schierbeck
daniel.schierbeck at gmail.com
Fri Apr 10 07:45:07 UTC 2009
------------------------------------------------------------
revno: 382
committer: Daniel Schierbeck <daniel.schierbeck at gmail.com>
branch nick: menubar
timestamp: Fri 2007-11-09 17:43:30 +0100
message:
Made accelerator for Previous Revision work.
modified:
viz/branchwin.py
-------------- next part --------------
=== modified file 'viz/branchwin.py'
--- a/viz/branchwin.py 2007-11-09 16:30:56 +0000
+++ b/viz/branchwin.py 2007-11-09 16:43:30 +0000
@@ -64,8 +64,9 @@
icon = self.render_icon(gtk.STOCK_INDEX, gtk.ICON_SIZE_BUTTON)
self.set_icon(icon)
+ gtk.accel_map_add_entry("<viz>/Go/Previous Revision", 65364, gtk.gdk.MOD1_MASK)
+
self.accel_group = gtk.AccelGroup()
- self.accel_group.connect_group(65364, gtk.gdk.MOD1_MASK, gtk.ACCEL_VISIBLE, self._back_clicked_cb)
self.add_accel_group(self.accel_group)
self.construct()
@@ -147,6 +148,7 @@
view_menu.add(col)
go_menu = gtk.Menu()
+ go_menu.set_accel_group(self.accel_group)
go_menuitem = gtk.MenuItem("_Go")
go_menuitem.set_submenu(go_menu)
@@ -160,6 +162,7 @@
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.go_menu_prev.connect("activate", self._back_clicked_cb)
tags_menu = gtk.Menu()
More information about the Pkg-bazaar-commits
mailing list