From b04ef642319006ed09fa7f160560f13d42f315c4 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 8 Mar 2008 20:23:11 +0000 Subject: [PATCH] Indicate mouse clicks properly handled by returning True svn: r10229 --- src/DataViews/GrampletView.py | 1 + src/Simple/_SimpleTable.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/DataViews/GrampletView.py b/src/DataViews/GrampletView.py index 9e6ac1ebb..60398947f 100644 --- a/src/DataViews/GrampletView.py +++ b/src/DataViews/GrampletView.py @@ -437,6 +437,7 @@ class Gramplet(object): self.gui.uistate, 'filterbyname', handle) + return True elif link_type == 'PersonList': if event.button == 1: # left mouse if event.type == gtk.gdk._2BUTTON_PRESS: # double diff --git a/src/Simple/_SimpleTable.py b/src/Simple/_SimpleTable.py index bab97f3d4..5795d7c73 100644 --- a/src/Simple/_SimpleTable.py +++ b/src/Simple/_SimpleTable.py @@ -82,6 +82,7 @@ class SimpleTable: index = store.get_value(node, 0) # index if self.__callback_leftdouble: self.__callback_leftdouble(store.get_value(node, 1)) + return True elif self.__link[index]: objclass, handle = self.__link[index] if objclass == 'Person': @@ -143,7 +144,10 @@ class SimpleTable: if not node: return index = store.get_value(node, 0) # index - if self.__link[index]: + if self.__callback_leftclick: + self.__callback_leftclick(store.get_value(node, 1)) + return True + elif self.__link[index]: objclass, handle = self.__link[index] if objclass == 'Person': person = self.access.dbase.get_person_from_handle(handle)