From 28c25286ad571909b5f35a92abc78e5385057cb3 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Wed, 26 Dec 2012 22:22:21 +0000 Subject: [PATCH] bug 1772, correct event handling svn: r20845 --- gramps/gui/editors/displaytabs/embeddedlist.py | 3 +++ gramps/gui/editors/displaytabs/groupembeddedlist.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gramps/gui/editors/displaytabs/embeddedlist.py b/gramps/gui/editors/displaytabs/embeddedlist.py index 49b85075a..818206b22 100644 --- a/gramps/gui/editors/displaytabs/embeddedlist.py +++ b/gramps/gui/editors/displaytabs/embeddedlist.py @@ -107,10 +107,13 @@ class EmbeddedList(ButtonTab): #ref = self.get_selected() #if ref: self.right_click(obj, event) + return True elif event.type == Gdk.EventType.BUTTON_PRESS and event.button == 2: fun = self.get_middle_click() if fun: fun() + return True + return False def get_popup_menu_items(self): """ diff --git a/gramps/gui/editors/displaytabs/groupembeddedlist.py b/gramps/gui/editors/displaytabs/groupembeddedlist.py index 1231290e7..e6e2dc305 100644 --- a/gramps/gui/editors/displaytabs/groupembeddedlist.py +++ b/gramps/gui/editors/displaytabs/groupembeddedlist.py @@ -113,10 +113,13 @@ class GroupEmbeddedList(EmbeddedList): if obj and obj[1]: self._tmpgroup = obj[0] self.right_click(obj[1], event) + return True elif event.type == Gdk.EventType.BUTTON_PRESS and event.button == 2: fun = self.get_middle_click() if fun: fun() + return True + return False def is_empty(self): """