Improve hover handling on displaytabs
svn: r20857
This commit is contained in:
parent
d64e11dc1d
commit
5fb66f3918
@ -114,6 +114,14 @@ class EmbeddedList(ButtonTab):
|
||||
if fun:
|
||||
fun()
|
||||
return True
|
||||
elif event.type == Gdk.EventType.BUTTON_PRESS and event.button == 1:
|
||||
if self.tree.get_hover_selection():
|
||||
self.tree.set_hover_selection(False)
|
||||
return True
|
||||
else:
|
||||
self.tree.set_hover_selection(True)
|
||||
#let code for single click still select the current row:
|
||||
return False
|
||||
return False
|
||||
|
||||
def get_popup_menu_items(self):
|
||||
|
@ -119,6 +119,14 @@ class GroupEmbeddedList(EmbeddedList):
|
||||
if fun:
|
||||
fun()
|
||||
return True
|
||||
elif event.type == Gdk.EventType.BUTTON_PRESS and event.button == 1:
|
||||
if self.tree.get_hover_selection():
|
||||
self.tree.set_hover_selection(False)
|
||||
return True
|
||||
else:
|
||||
self.tree.set_hover_selection(True)
|
||||
#let code for single click still select the current row:
|
||||
return False
|
||||
return False
|
||||
|
||||
def is_empty(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user