2006-07-07 Don Allingham <don@gramps-project.org>

* src/Editors/_EditFamily.py: add edit child/relationship options
	in the popup menu
	* src/DisplayTab/_EmbeddedList.py: break out menu specification to
	make it easier to override
	* src/glade/gramps.glade: remove unused objects
	* help/C/figures/place.png: update



svn: r7008
This commit is contained in:
Don Allingham
2006-07-08 04:17:50 +00:00
parent a7bd91a242
commit 185f1044b4
5 changed files with 34 additions and 2031 deletions

View File

@ -95,8 +95,7 @@ class EmbeddedList(ButtonTab):
if ref:
self.right_click(obj, event)
def right_click(self, obj, event):
def get_popup_menu_items(self):
if self.share_btn:
itemlist = [
(True, gtk.STOCK_ADD, self.add_button_clicked),
@ -110,9 +109,12 @@ class EmbeddedList(ButtonTab):
(True, gtk.STOCK_EDIT, self.edit_button_clicked),
(True, gtk.STOCK_REMOVE, self.del_button_clicked),
]
return itemlist
def right_click(self, obj, event):
menu = gtk.Menu()
for (image, title, func) in itemlist:
for (image, title, func) in self.get_popup_menu_items():
if image:
item = gtk.ImageMenuItem(stock_id=title)
else: