Skip to content

Commit

Permalink
Reorder focus chain in the replace page
Browse files Browse the repository at this point in the history
Fixes #53
  • Loading branch information
clefebvre committed Nov 28, 2023
1 parent d84ff32 commit 4bd7c4e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions usr/lib/bulky/bulky.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ def __init__(self, application):
self.replace_regex_check.connect("toggled", self.on_widget_change)
self.replace_case_check.connect("toggled", self.on_widget_change)

# Set focus chain
# Not that this is deprecated (but not implemented differently) in Gtk3.
# If we move to GTK4, we'll just drop this line of code.
self.builder.get_object("grid_replace").set_focus_chain([self.find_entry, self.replace_entry, self.replace_regex_check, self.replace_case_check])

# Remove widgets
self.remove_from_spin = self.builder.get_object("remove_from_spin")
self.remove_to_spin = self.builder.get_object("remove_to_spin")
Expand Down

0 comments on commit 4bd7c4e

Please sign in to comment.