builtinicon: save/restore cairo context when rendering

This commit is contained in:
Cosimo Cecchi 2015-12-19 12:07:39 -08:00
parent 4ec99db368
commit aadc13c4ec
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);
}