[gtk+] headerbar: Respect the show-close-button property



commit ec61f290dc2ee6f57650eae127366cfa0913cec0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Dec 12 21:36:36 2013 -0500

    headerbar: Respect the show-close-button property

 gtk/gtkheaderbar.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 5a58e89..64384b5 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -297,6 +297,9 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
       priv->titlebar_end_box = NULL;
     }
 
+  if (!priv->shows_wm_decorations)
+    return;
+
   gtk_widget_style_get (GTK_WIDGET (window),
                         "decoration-button-layout", &layout_desc,
                         NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]