forked from AuroraMiddleware/gtk
GtkHeaderBar: Refresh window buttons when settings change
We already do this when the shell-shows-menu settings changes, but we forgot to do the same for the decoration layout.
This commit is contained in:
parent
360f89d251
commit
f723113127
@ -1722,6 +1722,8 @@ gtk_header_bar_realize (GtkWidget *widget)
|
||||
settings = gtk_widget_get_settings (widget);
|
||||
g_signal_connect_swapped (settings, "notify::gtk-shell-shows-app-menu",
|
||||
G_CALLBACK (_gtk_header_bar_update_window_buttons), widget);
|
||||
g_signal_connect_swapped (settings, "notify::gtk-decoration-layout",
|
||||
G_CALLBACK (_gtk_header_bar_update_window_buttons), widget);
|
||||
_gtk_header_bar_update_window_buttons (GTK_HEADER_BAR (widget));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user