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:
parent
e1497c5f3e
commit
1b9949bdc6
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
||||
2008-02-13 Benny Malengier <benny.malengier@gramps-project.org>
|
||||
* src/DataViews/GrampletView.py: Gramplet key for detached min size
|
||||
* src/plugins/DefaultGramplets.py: RelativesGramplet detached size
|
||||
|
@ -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
|
||||
|
@ -352,7 +352,8 @@ class RelativesGramplet(Gramplet):
|
||||
"""
|
||||
def init(self):
|
||||
self.set_text(_("No Family Tree loaded."))
|
||||
self.tooltip = _("Click name to make person active")
|
||||
self.tooltip = _("Click name to make person active\n" +
|
||||
"Right-click name to edit person")
|
||||
|
||||
def db_changed(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user