diff options
author | Timm Bäder <mail@baedert.org> | 2019-09-10 14:18:20 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2019-09-11 08:12:31 +0200 |
commit | 3a06394fdeee7a968a2abfbd9a5fc3dce2aac4d2 (patch) | |
tree | 08b57655c3d0a86ebdc207c5347a0a93d986b52d /gtk/gtkheaderbar.c | |
parent | ce72154913c420f6d002b2ae2bbb8c15a3a8331e (diff) | |
download | gtk+-3a06394fdeee7a968a2abfbd9a5fc3dce2aac4d2.tar.gz |
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.
Diffstat (limited to 'gtk/gtkheaderbar.c')
-rw-r--r-- | gtk/gtkheaderbar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 2503ca0738..d8ddc7d155 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -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)) + return; + toplevel = GTK_WIDGET (gtk_widget_get_root (widget)); if (!GTK_IS_WINDOW (toplevel)) return; |