2008-02-13 Douglas S. Blank <dblank@cs.brynmawr.edu>

* src/DataViews/GrampletView.py: right-click on name link edits
	* src/plugins/DefaultGramplets.py: change tooltip of relation gramplet
	to indicate the right-click edit option



svn: r10029
This commit is contained in:
Doug Blank
2008-02-14 02:40:45 +00:00
parent e1497c5f3e
commit 1b9949bdc6
3 changed files with 17 additions and 1 deletions

View File

@ -366,6 +366,16 @@ class Gramplet(object):
elif event.type == gtk.gdk.BUTTON_PRESS: # single click
self.gui.dbstate.change_active_person(person)
return True # handled event
elif event.button == 3: # right mouse
#FIXME: add a popup menu with options
try:
from Editors import EditPerson
EditPerson(self.gui.dbstate,
self.gui.uistate,
[], person)
return True # handled event
except Errors.WindowActiveError:
pass
elif link_type == 'Surname':
if event.button == 1: # left mouse
if event.type == gtk.gdk._2BUTTON_PRESS: # double