mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
builtinicon: save/restore cairo context when rendering
This commit is contained in:
parent
4ec99db368
commit
aadc13c4ec
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user