[gtk+] shadow: add blur to text-shadow
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] shadow: add blur to text-shadow
- Date: Thu, 20 Sep 2012 00:47:22 +0000 (UTC)
commit 59eb3ef30ee7bcc8200349229e1f34cfe2e051b7
Author: Andrea Cimitan <andrea cimitan canonical com>
Date: Tue Apr 17 16:14:39 2012 -0400
shadow: add blur to text-shadow
gtk/gtkcssshadowvalue.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c
index bbc91bb..cdc3064 100644
--- a/gtk/gtkcssshadowvalue.c
+++ b/gtk/gtkcssshadowvalue.c
@@ -380,9 +380,14 @@ _gtk_css_shadow_value_paint_layout (const GtkCssValue *shadow,
cairo_rel_move_to (cr,
_gtk_css_number_value_get (shadow->hoffset, 0),
_gtk_css_number_value_get (shadow->voffset, 0));
+
+ cr = gtk_css_shadow_value_start_drawing (shadow, cr);
+
gdk_cairo_set_source_rgba (cr, _gtk_css_rgba_value_get_rgba (shadow->color));
_gtk_pango_fill_layout (cr, layout);
+ cr = gtk_css_shadow_value_finish_drawing (shadow, cr);
+
cairo_rel_move_to (cr,
- _gtk_css_number_value_get (shadow->hoffset, 0),
- _gtk_css_number_value_get (shadow->voffset, 0));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]