Commit 3a06394f authored by Timm Bäder's avatar Timm Bäder 👎

headerbar: Don't update window buttons when unrealized

It doesn't make much sense in that case and we will update them again
when realizing.
parent ce721549
......@@ -290,6 +290,9 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
gboolean shown_by_shell;
gboolean is_sovereign_window;
if (!gtk_widget_get_realized (widget))
toplevel = GTK_WIDGET (gtk_widget_get_root (widget));
if (!GTK_IS_WINDOW (toplevel))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment