]> Pileus Git - ~andy/gtk/commitdiff
themingbackground: don't clear the window bg cairo surface
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 24 May 2012 19:10:19 +0000 (15:10 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 24 May 2012 19:10:19 +0000 (15:10 -0400)
This is not needed anymore now that windows are transparent by default.

gtk/gtkthemingbackground.c

index eead12be1689c89ace3dbe59de5dced3bcd80ded..9da6abb8d3a4f9fac25988709029adc0bd925f1a 100644 (file)
@@ -50,18 +50,6 @@ typedef struct {
   gint idx;
 } GtkThemingBackgroundLayer;
 
-static void
-_gtk_theming_background_apply_window_background (GtkThemingBackground *bg,
-                                                 cairo_t              *cr)
-{
-  if (gtk_style_context_has_class (bg->context, "background"))
-    {
-      cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.0); /* transparent */
-      cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
-      cairo_paint (cr);
-    }
-}
-
 static void
 _gtk_theming_background_layer_apply_origin (GtkThemingBackground *bg,
                                             GtkThemingBackgroundLayer *layer)
@@ -400,7 +388,6 @@ _gtk_theming_background_render (GtkThemingBackground *bg,
   cairo_save (cr);
   cairo_translate (cr, bg->paint_area.x, bg->paint_area.y);
 
-  _gtk_theming_background_apply_window_background (bg, cr);
   _gtk_theming_background_paint_color (bg, cr, background_image);
 
   for (idx = _gtk_css_array_value_get_n_values (background_image) - 1; idx >= 0; idx--)