* src/gramps_main.py (init_interface, redraw_histmenu): Add
accelerators to the navigation menus. svn: r2221
This commit is contained in:
parent
ab71ad3b69
commit
098a8832de
@ -1,5 +1,7 @@
|
|||||||
2003-10-08 Alex Roitman <shura@alex.neuro.umn.edu>
|
2003-10-08 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
* src/po/sv.po: Typo in keyword. Fixes 820054.
|
* src/po/sv.po: Typo in keyword. Fixes 820054.
|
||||||
|
* src/gramps_main.py (init_interface, redraw_histmenu): Add
|
||||||
|
accelerators to the navigation menus.
|
||||||
|
|
||||||
2003-10-07 Don Allingham <dallingham@users.sourceforge.net>
|
2003-10-07 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/plugins/Verify.py: handle different calendars properly
|
* src/plugins/Verify.py: handle different calendars properly
|
||||||
|
@ -335,6 +335,11 @@ class Gramps:
|
|||||||
else:
|
else:
|
||||||
self.views.set_current_page(FAMILY_VIEW2)
|
self.views.set_current_page(FAMILY_VIEW2)
|
||||||
|
|
||||||
|
self.accel_group = gtk.AccelGroup()
|
||||||
|
self.topWindow.add_accel_group(self.accel_group)
|
||||||
|
self.back = gtk.ImageMenuItem(gtk.STOCK_GO_BACK)
|
||||||
|
self.forward = gtk.ImageMenuItem(gtk.STOCK_GO_BACK)
|
||||||
|
|
||||||
self.topWindow.show()
|
self.topWindow.show()
|
||||||
|
|
||||||
def redraw_histmenu(self):
|
def redraw_histmenu(self):
|
||||||
@ -344,13 +349,22 @@ class Gramps:
|
|||||||
# back, forward, separator, home.
|
# back, forward, separator, home.
|
||||||
gomenu = gtk.Menu()
|
gomenu = gtk.Menu()
|
||||||
|
|
||||||
|
self.back.destroy()
|
||||||
|
self.forward.destroy()
|
||||||
|
|
||||||
self.back = gtk.ImageMenuItem(gtk.STOCK_GO_BACK)
|
self.back = gtk.ImageMenuItem(gtk.STOCK_GO_BACK)
|
||||||
self.back.connect("activate",self.back_clicked)
|
self.back.connect("activate",self.back_clicked)
|
||||||
|
self.back.add_accelerator("activate", self.accel_group,
|
||||||
|
gtk.gdk.keyval_from_name("Left"),
|
||||||
|
gtk.gdk.MOD1_MASK, gtk.ACCEL_VISIBLE)
|
||||||
self.back.show()
|
self.back.show()
|
||||||
gomenu.append(self.back)
|
gomenu.append(self.back)
|
||||||
|
|
||||||
self.forward = gtk.ImageMenuItem(gtk.STOCK_GO_FORWARD)
|
self.forward = gtk.ImageMenuItem(gtk.STOCK_GO_FORWARD)
|
||||||
self.forward.connect("activate",self.fwd_clicked)
|
self.forward.connect("activate",self.fwd_clicked)
|
||||||
|
self.forward.add_accelerator("activate", self.accel_group,
|
||||||
|
gtk.gdk.keyval_from_name("Right"),
|
||||||
|
gtk.gdk.MOD1_MASK, gtk.ACCEL_VISIBLE)
|
||||||
self.forward.show()
|
self.forward.show()
|
||||||
gomenu.append(self.forward)
|
gomenu.append(self.forward)
|
||||||
|
|
||||||
@ -360,6 +374,9 @@ class Gramps:
|
|||||||
|
|
||||||
item = gtk.ImageMenuItem(gtk.STOCK_HOME)
|
item = gtk.ImageMenuItem(gtk.STOCK_HOME)
|
||||||
item.connect("activate",self.on_home_clicked)
|
item.connect("activate",self.on_home_clicked)
|
||||||
|
item.add_accelerator("activate", self.accel_group,
|
||||||
|
gtk.gdk.keyval_from_name("Home"),
|
||||||
|
gtk.gdk.MOD1_MASK, gtk.ACCEL_VISIBLE)
|
||||||
item.show()
|
item.show()
|
||||||
gomenu.append(item)
|
gomenu.append(item)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user