[gtk+] themingbackground: don't clear the window bg cairo surface
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] themingbackground: don't clear the window bg cairo surface
- Date: Thu, 24 May 2012 19:12:29 +0000 (UTC)
commit 403025f229b47c9faef585d0706bff73838c7341
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu May 24 15:10:19 2012 -0400
themingbackground: don't clear the window bg cairo surface
This is not needed anymore now that windows are transparent by default.
gtk/gtkthemingbackground.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c
index eead12b..9da6abb 100644
--- a/gtk/gtkthemingbackground.c
+++ b/gtk/gtkthemingbackground.c
@@ -51,18 +51,6 @@ typedef struct {
} 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--)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]