summaryrefslogtreecommitdiff
path: root/gtk/gtkbuiltinicon.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-12-19 12:07:39 -0800
committerCosimo Cecchi <cosimoc@gnome.org>2015-12-19 21:22:37 -0800
commitaadc13c4ec1619b7ed31fdf44005f5c81529d092 (patch)
tree4226d79e105ab91d23ec3f71aed5176bca0ea956 /gtk/gtkbuiltinicon.c
parent4ec99db368e1f7c34a7c182ed28bd6b9a3e210ba (diff)
downloadgtk+-aadc13c4ec1619b7ed31fdf44005f5c81529d092.tar.gz
builtinicon: save/restore cairo context when rendering
Diffstat (limited to 'gtk/gtkbuiltinicon.c')
-rw-r--r--gtk/gtkbuiltinicon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkbuiltinicon.c b/gtk/gtkbuiltinicon.c
index 71a44f6c26..8a57a617fa 100644
--- a/gtk/gtkbuiltinicon.c
+++ b/gtk/gtkbuiltinicon.c
@@ -105,11 +105,13 @@ gtk_builtin_icon_draw (GtkCssGadget *gadget,
{
GtkBuiltinIconPrivate *priv = gtk_builtin_icon_get_instance_private (GTK_BUILTIN_ICON (gadget));
+ cairo_save (cr);
gtk_css_style_render_icon (gtk_css_gadget_get_style (gadget),
cr,
x, y,
width, height,
priv->image_type);
+ cairo_restore (cr);
return FALSE;
}