Skip to content

Commit

Permalink
Ensure settings window expands to fit toolbar
Browse files Browse the repository at this point in the history
As the settings window Toolbar only contains one ToolItem, this ToolItem can disappear if the window is too narrow and Toolbar:show-arrow property is set to true. Set Toolbar:show-arrow to false to ensure that the window will expand to accommodate the full width of the Toolbar.
  • Loading branch information
fredcw authored Oct 30, 2023
1 parent 5eda3d4 commit 7f79812
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def build_window(self):

toolbar = Gtk.Toolbar()
toolbar.get_style_context().add_class("primary-toolbar")
toolbar.set_show_arrow(False)
main_box.add(toolbar)

toolitem = Gtk.ToolItem()
Expand Down

0 comments on commit 7f79812

Please sign in to comment.