[gtk+/rendering-cleanup: 106/124] xxx: style: Draw text with pango_cairo_draw_layout()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 106/124] xxx: style: Draw text with pango_cairo_draw_layout()
- Date: Thu, 22 Jul 2010 02:07:34 +0000 (UTC)
commit c925366903b6549831d6a6ed3b91ff3abae2a03d
Author: Benjamin Otte <otte redhat com>
Date: Wed Jul 21 14:17:49 2010 +0200
xxx: style: Draw text with pango_cairo_draw_layout()
Previous code was using pango_cairo_layout_path() + cairo_fill() which
obviously destroyed all color markup, and that is BAD.
gtk/gtkstyle.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index e500384..8d78b36 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -4285,8 +4285,7 @@ gtk_default_draw_layout (GtkStyle *style,
cairo_move_to (cr, x, y);
gdk_cairo_set_source_color (cr, gc);
- pango_cairo_layout_path (cr, layout);
- cairo_fill (cr);
+ pango_cairo_show_layout (cr, layout);
cairo_destroy (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]