[gtk/wip/baedert/for-master: 126/126] headerbar: Don't update window buttons when unrealized
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 126/126] headerbar: Don't update window buttons when unrealized
- Date: Tue, 10 Sep 2019 12:40:24 +0000 (UTC)
commit 5fcc6f1d6ea6a46bf07eaedbac70fa2878db9905
Author: Timm Bäder <mail baedert org>
Date: Tue Sep 10 14:18:20 2019 +0200
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.
gtk/gtkheaderbar.c | 3 +++
1 file changed, 3 insertions(+)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]