[gtk+/wip/matthiasc/gskpango: 3/8] Use GskPangoRenderer to render text
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/gskpango: 3/8] Use GskPangoRenderer to render text
- Date: Thu, 31 Aug 2017 23:49:18 +0000 (UTC)
commit a67cbbea026b2bce5b780d86f1f9f053fc3e4731
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]