[gtk+] Fix up default csd titlebars



commit 8bdc3ab4c50f57b71777a2bc64970afe61c0bb3e
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 16 13:39:36 2013 -0500

    Fix up default csd titlebars
    
    We were forgetting to show close buttons, and the spacing
    was wrong, too.

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 5c6d018..d8ece2f 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5162,9 +5162,9 @@ create_titlebar (GtkWindow *window)
 
   titlebar = gtk_header_bar_new ();
   g_object_set (titlebar,
-                "spacing", 0,
                 "title", priv->title ? priv->title : get_default_title (),
                 "has-subtitle", FALSE,
+                "show-close-button", TRUE,
                 NULL);
   context = gtk_widget_get_style_context (titlebar);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_TITLEBAR);


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