From 395db3afb685a7a7845aa9829dc978209c515d30 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 8 Oct 2014 05:23:11 +0200 Subject: [PATCH] themingbackground: Use fill() instead of clip() + paint() It's simpler code and I believe it's faster, too. --- gtk/gtkthemingbackground.c | 7 +------ 1 file changed, 1 insertion(+), 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