headerbar: Respect the show-close-button property

This commit is contained in:
Jasper St. Pierre 2013-12-12 21:36:36 -05:00
parent 01f5ff765b
commit ec61f290dc

View File

@ -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);