summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-10-08 05:23:11 +0200
committerBenjamin Otte <otte@redhat.com>2014-10-08 05:23:11 +0200
commit395db3afb685a7a7845aa9829dc978209c515d30 (patch)
tree161a28a1bbfd2e500cf376c9a7adb4c9db3533da
parenta3d68af95053ca8072e27a5b7258018e7635788f (diff)
downloadgtk+-395db3afb685a7a7845aa9829dc978209c515d30.tar.gz
themingbackground: Use fill() instead of clip() + paint()
It's simpler code and I believe it's faster, too.
-rw-r--r--gtk/gtkthemingbackground.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c
index acc830f331..6c57d7b59d 100644
--- a/gtk/gtkthemingbackground.c
+++ b/gtk/gtkthemingbackground.c
@@ -65,14 +65,9 @@ _gtk_theming_background_paint_color (GtkThemingBackground *bg,
(_gtk_style_context_peek_property (bg->context, GTK_CSS_PROPERTY_BACKGROUND_CLIP),
n_values - 1));
- cairo_save (cr);
_gtk_rounded_box_path (&bg->boxes[clip], cr);
- cairo_clip (cr);
-
gdk_cairo_set_source_rgba (cr, bg_color);
- cairo_paint (cr);
-
- cairo_restore (cr);
+ cairo_fill (cr);
}
static void