[gtk+] themingbackground: Use fill() instead of clip() + paint()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] themingbackground: Use fill() instead of clip() + paint()
- Date: Wed, 8 Oct 2014 03:24:43 +0000 (UTC)
commit 395db3afb685a7a7845aa9829dc978209c515d30
Author: Benjamin Otte <otte redhat com>
Date: Wed Oct 8 05:23:11 2014 +0200
themingbackground: Use fill() instead of clip() + paint()
It's simpler code and I believe it's faster, too.
gtk/gtkthemingbackground.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c
index acc830f..6c57d7b 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]