mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
don't unset cursor in SelectionList
When no cursor is set in SelectionList and the keyboard focus enters the widget a "item-reselected" is triggered.
This commit is contained in:
parent
1231e07f52
commit
da14ac2ef6
@ -1667,7 +1667,7 @@ class SelectionList(TreeView):
|
||||
return len(self._store)-1
|
||||
|
||||
def select_path(self, path):
|
||||
self._selection.select_path(path)
|
||||
self.set_cursor(path)
|
||||
|
||||
def select(self, item):
|
||||
row_num=len(self._store)
|
||||
@ -1690,7 +1690,6 @@ class SelectionList(TreeView):
|
||||
return self.get_item_at_path(self.get_path_selected())
|
||||
|
||||
def scroll_to_selected(self):
|
||||
self.set_cursor(Gtk.TreePath(len(self._store)), None, False) # unset cursor
|
||||
self.save_scroll_to_cell(self._selected_path, None, True, 0.25)
|
||||
|
||||
def _on_selection_changed(self, *args):
|
||||
|
Loading…
Reference in New Issue
Block a user