From f6ac8eb854ff188f57e11eb2a3352c98de70a4a9 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Fri, 4 Apr 2014 18:56:24 +0100 Subject: [PATCH] 7455: Remove hover selection from embedded lists --- gramps/gui/editors/displaytabs/embeddedlist.py | 9 --------- gramps/gui/editors/displaytabs/groupembeddedlist.py | 8 -------- 2 files changed, 17 deletions(-) diff --git a/gramps/gui/editors/displaytabs/embeddedlist.py b/gramps/gui/editors/displaytabs/embeddedlist.py index bd897dba3..48f79a2c7 100644 --- a/gramps/gui/editors/displaytabs/embeddedlist.py +++ b/gramps/gui/editors/displaytabs/embeddedlist.py @@ -96,7 +96,6 @@ class EmbeddedList(ButtonTab): self.pb_renderer = None # handle the selection - self.tree.set_hover_selection(True) self.selection = self.tree.get_selection() self.selection.connect('changed', self._selection_changed) self.track_ref_for_deletion("selection") @@ -130,14 +129,6 @@ 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): diff --git a/gramps/gui/editors/displaytabs/groupembeddedlist.py b/gramps/gui/editors/displaytabs/groupembeddedlist.py index a5d83a767..7ac8d40d5 100644 --- a/gramps/gui/editors/displaytabs/groupembeddedlist.py +++ b/gramps/gui/editors/displaytabs/groupembeddedlist.py @@ -120,14 +120,6 @@ 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):