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

@ -116,6 +116,15 @@ class ChildEmbedList(EmbeddedList):
EmbeddedList.__init__(self, dbstate, uistate, track,
_('Children'), ChildModel, True)
def get_popup_menu_items(self):
return [
(True, gtk.STOCK_ADD, self.add_button_clicked),
(False, _('Share'), self.edit_button_clicked),
(True, _('Edit relationship'), self.edit_button_clicked),
(True, _('Edit child'), self.edit_child_button_clicked),
(True, gtk.STOCK_REMOVE, self.del_button_clicked),
]
def find_index(self,obj):
"""
returns the index of the object within the associated data
@ -258,6 +267,18 @@ class ChildEmbedList(EmbeddedList):
ref, self.child_ref_edited)
break
def edit_child_button_clicked(self, obj):
handle = self.get_selected()
if handle:
from Editors import EditPerson
for ref in self.family.get_child_ref_list():
if ref.ref == handle:
p = self.dbstate.db.get_person_from_handle(handle)
EditPerson(self.dbstate, self.uistate, self.track,
p, self.child_ref_edited)
break
def drag_data_received(self, widget, context, x, y, sel_data, info, time):
"""
Handle the standard gtk interface for drag_data_received.