Indicate mouse clicks properly handled by returning True

svn: r10229
This commit is contained in:
Doug Blank 2008-03-08 20:23:11 +00:00
parent a3013e55d6
commit b04ef64231
2 changed files with 6 additions and 1 deletions

View File

@ -437,6 +437,7 @@ class Gramplet(object):
self.gui.uistate, self.gui.uistate,
'filterbyname', 'filterbyname',
handle) handle)
return True
elif link_type == 'PersonList': elif link_type == 'PersonList':
if event.button == 1: # left mouse if event.button == 1: # left mouse
if event.type == gtk.gdk._2BUTTON_PRESS: # double if event.type == gtk.gdk._2BUTTON_PRESS: # double

View File

@ -82,6 +82,7 @@ class SimpleTable:
index = store.get_value(node, 0) # index index = store.get_value(node, 0) # index
if self.__callback_leftdouble: if self.__callback_leftdouble:
self.__callback_leftdouble(store.get_value(node, 1)) self.__callback_leftdouble(store.get_value(node, 1))
return True
elif self.__link[index]: elif self.__link[index]:
objclass, handle = self.__link[index] objclass, handle = self.__link[index]
if objclass == 'Person': if objclass == 'Person':
@ -143,7 +144,10 @@ class SimpleTable:
if not node: if not node:
return return
index = store.get_value(node, 0) # index 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] objclass, handle = self.__link[index]
if objclass == 'Person': if objclass == 'Person':
person = self.access.dbase.get_person_from_handle(handle) person = self.access.dbase.get_person_from_handle(handle)