[gtk+] window: don't add the background style class when drawing CSD elements



commit 8fd9575ab6303a3666b3263659c13e25a9c553e1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Mar 21 08:47:06 2013 -0400

    window: don't add the background style class when drawing CSD elements
    
    We already set it in init, so this is just redundant.
    The additional window-content style class here is needed so that we can
    distinguish between the full X window background and the background for
    the actual window contents.

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2d047a2..89b9ce7 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -8956,7 +8956,7 @@ gtk_window_draw (GtkWidget *widget,
       gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
     {
       gtk_style_context_save (context);
-      gtk_style_context_add_class (context, GTK_STYLE_CLASS_BACKGROUND);
+      gtk_style_context_add_class (context, "window-content");
 
       if (priv->client_decorated &&
           priv->decorated &&


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