From 36fead28e09ba889050a3d659c2320694072f3d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 19 Apr 2016 15:20:14 +0200 Subject: [PATCH] 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. --- gtk/gtkcssimagebuiltin.c | 2 ++ 1 file changed, 2 insertions(+) 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); } } }