Set hexpand on toolbars

Depending on the Windows version and theme, a non-horizontally expanded
toolbar has a sharp visual discontinuity between the toolbar button
backgrounds and the background next to the toolbar.

Enabling horizontal expansion gives a seamless background across the width
of the window.
This commit is contained in:
Jonathan Boeing 2021-07-29 17:26:33 -07:00
parent 8eaf132bdb
commit 9674154cb6

View file

@ -2262,6 +2262,7 @@ Toolbar *toolbar_create(ToolbarType type,
gtk_toolbar_set_style(GTK_TOOLBAR(toolbar), GTK_TOOLBAR_BOTH);
gtk_toolbar_set_show_arrow(GTK_TOOLBAR(toolbar), TRUE);
gtk_widget_set_hexpand(toolbar, TRUE);
for (cur = toolbar_list; cur != NULL; cur = cur->next) {