[gtk+/wip/css: 9/15] background: Use save/restore around setting the operator
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 9/15] background: Use save/restore around setting the operator
- Date: Fri, 18 May 2012 15:52:32 +0000 (UTC)
commit 9ddf6d978328469a1b0e300da28e27788378848b
Author: Benjamin Otte <otte redhat com>
Date: Mon Apr 30 19:03:42 2012 +0200
background: Use save/restore around setting the operator
gtk/gtkthemingbackground.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c
index 158ac32..921cca4 100644
--- a/gtk/gtkthemingbackground.c
+++ b/gtk/gtkthemingbackground.c
@@ -48,9 +48,10 @@ _gtk_theming_background_apply_window_background (GtkThemingBackground *bg,
{
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_save (cr);
+ cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
cairo_paint (cr);
+ cairo_restore (cr);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]