Indicate mouse clicks properly handled by returning True
svn: r10229
This commit is contained in:
parent
a3013e55d6
commit
b04ef64231
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user