2007-12-18 Douglas S. Blank <dblank@cs.brynmawr.edu>

* src/Editors/_EditFamily.py: doubleclick now edits; fixed share popup
	* src/DisplayTabs/_EmbeddedList.py: fixed share popup
	* src/DisplayTabs/_GalleryTab.py: fixed share popup



svn: r9530
This commit is contained in:
Doug Blank 2007-12-19 00:50:33 +00:00
parent 29a40f4bca
commit 21b0612e84
4 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2007-12-18 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/Editors/_EditFamily.py: doubleclick now edits; fixed share popup
* src/DisplayTabs/_EmbeddedList.py: fixed share popup
* src/DisplayTabs/_GalleryTab.py: fixed share popup
2007-12-18 Gary Burton <gary.burton@zen.co.uk>
* src/plugins/DetAncestralReport.py: Remove some test code

View File

@ -99,7 +99,7 @@ class EmbeddedList(ButtonTab):
if self.share_btn:
itemlist = [
(True, True, gtk.STOCK_ADD, self.add_button_clicked),
(True, False, _('Share'), self.edit_button_clicked),
(True, False, _('Share'), self.share_button_clicked),
(False,True, gtk.STOCK_EDIT, self.edit_button_clicked),
(True, True, gtk.STOCK_REMOVE, self.del_button_clicked),
]

View File

@ -101,7 +101,7 @@ class GalleryTab(ButtonTab):
def right_click(self, obj, event):
itemlist = [
(True, True, gtk.STOCK_ADD, self.add_button_clicked),
(True, False, _('Share'), self.edit_button_clicked),
(True, False, _('Share'), self.share_button_clicked),
(False,True, gtk.STOCK_EDIT, self.edit_button_clicked),
(True, True, gtk.STOCK_REMOVE, self.del_button_clicked),
]

View File

@ -85,7 +85,7 @@ class ChildEmbedList(EmbeddedList):
_MSG = {
'add' : _('Create a new person and add the child to the family'),
'del' : _('Remove the child from the family'),
'edit' : _('Edit the child/family relationship'),
'edit' : _('Edit the child'),
'share' : _('Add an existing person as a child of the family'),
'up' : _('Move the child up in the childrens list'),
'down' : _('Move the child down in the childrens list'),
@ -115,9 +115,9 @@ class ChildEmbedList(EmbeddedList):
def get_popup_menu_items(self):
return [
(True, True, gtk.STOCK_ADD, self.add_button_clicked),
(True, False, _('Share'), self.edit_button_clicked),
(False,True, _('Edit relationship'), self.edit_button_clicked),
(False,True, _('Edit child'), self.edit_child_button_clicked),
(True, False, _('Add an existing child'), self.share_button_clicked),
(False,True, _('Edit relationship'), self.edit_relation_button_clicked),
(False,True, _('Edit child'), self.edit_button_clicked),
(True, True, gtk.STOCK_REMOVE, self.del_button_clicked),
]
@ -253,7 +253,7 @@ class ChildEmbedList(EmbeddedList):
self.family.remove_child_ref(ref)
self.rebuild()
def edit_button_clicked(self,obj):
def edit_relation_button_clicked(self,obj):
handle = self.get_selected()
if handle:
from Editors import EditChildRef
@ -269,7 +269,7 @@ class ChildEmbedList(EmbeddedList):
pass
break
def edit_child_button_clicked(self, obj):
def edit_button_clicked(self, obj):
handle = self.get_selected()
if handle:
from Editors import EditPerson