From: Cosimo Cecchi Date: Thu, 24 May 2012 19:10:19 +0000 (-0400) Subject: themingbackground: don't clear the window bg cairo surface X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=403025f229b47c9faef585d0706bff73838c7341;p=~andy%2Fgtk themingbackground: don't clear the window bg cairo surface This is not needed anymore now that windows are transparent by default. --- diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c index eead12be1..9da6abb8d 100644 --- a/gtk/gtkthemingbackground.c +++ b/gtk/gtkthemingbackground.c @@ -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--)