diff options
author | Benjamin Otte <otte@redhat.com> | 2014-10-11 03:32:28 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-10-12 04:16:44 +0200 |
commit | 0a31609201cf3d637f05a22c69f2510a5cfcd058 (patch) | |
tree | 0e805c0ba0cefd3370e73689bbec6d8732b65c80 | |
parent | f4e44e9e6e92c9fddc92970f7b1d36c308508096 (diff) | |
download | gtk+-0a31609201cf3d637f05a22c69f2510a5cfcd058.tar.gz |
colorswatch: Remove unneeded save/restore
for both style context and cairo context.
-rw-r--r-- | gtk/gtkcolorswatch.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c index 921b8d9793..a88ce46624 100644 --- a/gtk/gtkcolorswatch.c +++ b/gtk/gtkcolorswatch.c @@ -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); |