From 473268f0bf5ffefce3008f4e3fe1ff8436653152 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 12 Sep 2024 20:54:59 +0200 Subject: [PATCH] In browser, grab focus on sort orderer when navigating it. --- browser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser.py b/browser.py index d95eb10..7b9e389 100755 --- a/browser.py +++ b/browser.py @@ -179,6 +179,10 @@ class MainWindow(Gtk.Window): self.sort_order.reverse() self.sort_store = Gio.ListStore(item_type=SortLabelItem) self.sort_selection = Gtk.SingleSelection.new(self.sort_store) + self.sort_selection.connect( + 'selection-changed', + lambda a, b, c: self.sort_selection.props.selected_item.box + .props.child.get_parent().grab_focus()) factory = Gtk.SignalListItemFactory() def setup_sort_order_item(_, item): -- 2.30.2