summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-04-19 15:20:14 +0200
committerMatthias Clasen <mclasen@redhat.com>2016-04-19 10:40:14 -0400
commitddde1a58a8f31b5f8fed766b27cd7f88b14a834a (patch)
tree5195ab3f7d1d3f2f49eff2f7931c27b65190b96e
parent373749649ea1755ba86df159ea25e3aafd29ac74 (diff)
downloadgtk+-ddde1a58a8f31b5f8fed766b27cd7f88b14a834a.tar.gz
gtkcssimagebuiltin: Save/restore around cairo_clip
This was previously causing trouble in checkbuttons where the check node didn't have an icon shadow set, e.g. in Raleigh.
-rw-r--r--gtk/gtkcssimagebuiltin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcssimagebuiltin.c b/gtk/gtkcssimagebuiltin.c
index 012abbae23..07d2fec633 100644
--- a/gtk/gtkcssimagebuiltin.c
+++ b/gtk/gtkcssimagebuiltin.c
@@ -95,6 +95,7 @@ gtk_css_image_builtin_draw_check (GtkCssImage *image,
{
if (checked)
{
+ cairo_save (cr);
cairo_translate (cr,
x + pad, y + pad);
@@ -123,6 +124,7 @@ gtk_css_image_builtin_draw_check (GtkCssImage *image,
7.0, 0.0);
cairo_fill (cr);
+ cairo_restore (cr);
}
}
}