[gtk+/gtk-style-context: 281/347] GtkThemingEngine: Clear the background for .background class
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 281/347] GtkThemingEngine: Clear the background for .background class
- Date: Thu, 11 Nov 2010 01:28:08 +0000 (UTC)
commit bc0626db492d16be05150b2c04f27e238d206bec
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]