mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
colorswatch: Remove unneeded save/restore
for both style context and cairo context.
This commit is contained in:
parent
f4e44e9e6e
commit
0a31609201
@ -120,10 +120,6 @@ swatch_draw (GtkWidget *widget,
|
||||
width = gtk_widget_get_allocated_width (widget);
|
||||
height = gtk_widget_get_allocated_height (widget);
|
||||
|
||||
cairo_save (cr);
|
||||
|
||||
gtk_style_context_save (context);
|
||||
|
||||
gtk_render_background (context, cr, 0, 0, width, height);
|
||||
|
||||
if (swatch->priv->has_color)
|
||||
@ -221,9 +217,6 @@ swatch_draw (GtkWidget *widget,
|
||||
g_object_unref (icon_info);
|
||||
}
|
||||
|
||||
cairo_restore (cr);
|
||||
gtk_style_context_restore (context);
|
||||
|
||||
if (gtk_widget_has_visible_focus (widget))
|
||||
{
|
||||
gtk_render_focus (context, cr, 0, 0, width, height);
|
||||
|
Loading…
Reference in New Issue
Block a user