7455: Remove hover selection from embedded lists
This commit is contained in:
@ -82,7 +82,6 @@ class EmbeddedList(ButtonTab):
|
|||||||
self.build_model = build_model
|
self.build_model = build_model
|
||||||
|
|
||||||
# handle the selection
|
# handle the selection
|
||||||
self.tree.set_hover_selection(True)
|
|
||||||
self.selection = self.tree.get_selection()
|
self.selection = self.tree.get_selection()
|
||||||
self.selection.connect('changed', self._selection_changed)
|
self.selection.connect('changed', self._selection_changed)
|
||||||
self.track_ref_for_deletion("selection")
|
self.track_ref_for_deletion("selection")
|
||||||
@ -115,14 +114,6 @@ class EmbeddedList(ButtonTab):
|
|||||||
if fun:
|
if fun:
|
||||||
fun()
|
fun()
|
||||||
return True
|
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
|
return False
|
||||||
|
|
||||||
def get_popup_menu_items(self):
|
def get_popup_menu_items(self):
|
||||||
|
@ -119,14 +119,6 @@ class GroupEmbeddedList(EmbeddedList):
|
|||||||
if fun:
|
if fun:
|
||||||
fun()
|
fun()
|
||||||
return True
|
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
|
return False
|
||||||
|
|
||||||
def is_empty(self):
|
def is_empty(self):
|
||||||
|
Reference in New Issue
Block a user