GtkThemingEngine: Clear the background for .background class

This commit is contained in:
Carlos Garnacho
2010-10-24 00:04:34 +02:00
parent d565e15951
commit 43f7fb8354

View File

@ -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);