Commit aadc13c4 authored by Cosimo Cecchi's avatar Cosimo Cecchi

builtinicon: save/restore cairo context when rendering

parent 4ec99db3
......@@ -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;
}
......
......@@ -887,9 +887,7 @@ gtk_expander_render_title (GtkCssGadget *gadget,
GtkExpander *expander = GTK_EXPANDER (widget);
GtkExpanderPrivate *priv = expander->priv;
cairo_save (cr);
gtk_css_gadget_draw (priv->arrow_gadget, cr);
cairo_restore (cr);
return gtk_widget_has_visible_focus (widget);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment