From 1b9949bdc6ced01b3e3587fb19cf3f1dd974eefb Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 14 Feb 2008 02:40:45 +0000 Subject: [PATCH] 2008-02-13 Douglas S. Blank * 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 --- ChangeLog | 5 +++++ src/DataViews/GrampletView.py | 10 ++++++++++ src/plugins/DefaultGramplets.py | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c937ead03..3c5017afc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-13 Douglas S. Blank + * 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 * src/DataViews/GrampletView.py: Gramplet key for detached min size * src/plugins/DefaultGramplets.py: RelativesGramplet detached size diff --git a/src/DataViews/GrampletView.py b/src/DataViews/GrampletView.py index fadf0cfdb..b89b4e76e 100644 --- a/src/DataViews/GrampletView.py +++ b/src/DataViews/GrampletView.py @@ -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 diff --git a/src/plugins/DefaultGramplets.py b/src/plugins/DefaultGramplets.py index 18fc3e713..bdc6e5956 100644 --- a/src/plugins/DefaultGramplets.py +++ b/src/plugins/DefaultGramplets.py @@ -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): """