* TODO: Update.
* gramps.desktop: Remove in favor of src/gramps.desktop file. * src/gramps_main.py: Replace stock Home with the custom string. * src/PeopleView.py: Replace stock Home with the custom string. svn: r2443
This commit is contained in:
@@ -376,7 +376,9 @@ class PeopleView:
|
||||
entries = [
|
||||
(gtk.STOCK_GO_BACK,self.parent.back_clicked,back_sensitivity),
|
||||
(gtk.STOCK_GO_FORWARD,self.parent.fwd_clicked,fwd_sensitivity),
|
||||
(gtk.STOCK_HOME,self.parent.on_home_clicked,1),
|
||||
#FIXME: revert to stock item when German gtk translation is fixed
|
||||
#(gtk.STOCK_HOME,self.parent.on_home_clicked,1),
|
||||
(_("Home"),self.parent.on_home_clicked,1),
|
||||
(_("Add Bookmark"),self.parent.on_add_bookmark_activate,sel_sensitivity),
|
||||
(None,None,0),
|
||||
(gtk.STOCK_ADD, self.parent.add_button_clicked,1),
|
||||
@@ -388,6 +390,11 @@ class PeopleView:
|
||||
menu.set_title(_('People Menu'))
|
||||
for stock_id,callback,sensitivity in entries:
|
||||
item = gtk.ImageMenuItem(stock_id)
|
||||
#FIXME: remove when German gtk translation is fixed
|
||||
if stock_id == _("Home"):
|
||||
im = gtk.image_new_from_stock(gtk.STOCK_HOME,gtk.ICON_SIZE_MENU)
|
||||
im.show()
|
||||
item.set_image(im)
|
||||
if callback:
|
||||
item.connect("activate",callback)
|
||||
item.set_sensitive(sensitivity)
|
||||
|
||||
@@ -350,7 +350,7 @@ class Gramps:
|
||||
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.forward = gtk.ImageMenuItem(gtk.STOCK_GO_FORWARD)
|
||||
|
||||
self.topWindow.show()
|
||||
self.enable_toolbar(self.use_toolbar)
|
||||
@@ -395,7 +395,12 @@ class Gramps:
|
||||
item.show()
|
||||
gomenu.append(item)
|
||||
|
||||
item = gtk.ImageMenuItem(gtk.STOCK_HOME)
|
||||
#FIXME: revert to stock item when German gtk translation is fixed
|
||||
#item = gtk.ImageMenuItem(gtk.STOCK_HOME)
|
||||
item = gtk.ImageMenuItem(_("Home"))
|
||||
im = gtk.image_new_from_stock(gtk.STOCK_HOME,gtk.ICON_SIZE_MENU)
|
||||
im.show()
|
||||
item.set_image(im)
|
||||
item.connect("activate",self.on_home_clicked)
|
||||
item.add_accelerator("activate", self.accel_group,
|
||||
gtk.gdk.keyval_from_name("Home"),
|
||||
|
||||
Reference in New Issue
Block a user