[gtk+] window: add a style class when we automatically create the titlebar



commit 6928aedb2c7a8e67f7c0216fb9207bb0e6b4375f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Aug 22 16:16:05 2013 +0100

    window: add a style class when we automatically create the titlebar
    
    To distinguish it from custom titlebars added from applications.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706592

 gtk/gtkwindow.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 18bcbc7..fec88e8 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5273,6 +5273,7 @@ create_titlebar (GtkWindow *window)
                 NULL);
   context = gtk_widget_get_style_context (titlebar);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_TITLEBAR);
+  gtk_style_context_add_class (context, "default-decoration");
 
   title = g_markup_printf_escaped ("<b>%s</b>",
                                    priv->title ? priv->title : get_default_title ());


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