[gtk+/wip/matthiasc/gskpango: 13/18] Use GskPangoRenderer to render text
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/gskpango: 13/18] Use GskPangoRenderer to render text
- Date: Fri, 1 Sep 2017 16:06:40 +0000 (UTC)
commit ca501df0494662beeb6316d3a38a0124c63ec88a
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 30 11:14:48 2017 -0400
Use GskPangoRenderer to render text
This just replaces the wrapper call.
gtk/gtksnapshot.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtksnapshot.c b/gtk/gtksnapshot.c
index 77146e4..d46c0a0 100644
--- a/gtk/gtksnapshot.c
+++ b/gtk/gtksnapshot.c
@@ -29,6 +29,8 @@
#include "gsk/gskrendernodeprivate.h"
+#include "gtk/gskpango.h"
+
/**
* SECTION:gtksnapshot
@@ -1357,7 +1359,8 @@ gtk_snapshot_render_layout (GtkSnapshot *snapshot,
_gtk_css_shadows_value_paint_layout (shadow, cr, layout);
gdk_cairo_set_source_rgba (cr, fg_color);
- pango_cairo_show_layout (cr, layout);
+
+ gsk_pango_show_layout (cr, layout);
cairo_destroy (cr);
gtk_snapshot_offset (snapshot, -x, -y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]