[gtk+/gtk-style-context: 281/533] GtkThemingEngine: Clear the background for .background class



commit 83f7bfd26da26a9e012ca920a8b67d6bf0ac3966
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Oct 24 00:04:34 2010 +0200

    GtkThemingEngine: Clear the background for .background class

 gtk/gtkthemingengine.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index b80592b..dba82ce 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1278,6 +1278,13 @@ gtk_theming_engine_render_background (GtkThemingEngine *engine,
                                 SIDE_ALL, junction);
   cairo_clip (cr);
 
+  if (gtk_theming_engine_has_class (engine, "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);
+    }
+
   cairo_translate (cr, x, y);
   cairo_scale (cr, width, height);
 



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