summaryrefslogtreecommitdiff
path: root/gtk/gtktextlayout.c
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2019-10-09 12:56:06 -0700
committerChristian Hergert <chergert@redhat.com>2019-10-09 12:56:06 -0700
commitc7a5d992869f04f3401af44bde640244c6fbb275 (patch)
treee061418be67c4d052df4d74ce34a9329f2cf12c3 /gtk/gtktextlayout.c
parentc9ca60c201216e0a7bf933a0cbb5225cab38fa87 (diff)
downloadgtk+-c7a5d992869f04f3401af44bde640244c6fbb275.tar.gz
textview: use gtk_snapshot_new_with_parent()
As recommended by Timm Bäder at: https://gitlab.gnome.org/GNOME/gtk/commit/3b959456ac5335639e9642571f59f17ec8ee97f7#note_621655
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r--gtk/gtktextlayout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index d7c270a9dc..7b60b13f3f 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -86,6 +86,7 @@
#include "gtktextutil.h"
#include "gskpango.h"
#include "gtkintl.h"
+#include "gtksnapshotprivate.h"
#include "gtkwidgetprivate.h"
#include "gtktextviewprivate.h"
@@ -4153,7 +4154,7 @@ gtk_text_layout_snapshot (GtkTextLayout *layout,
if (line_display->node == NULL)
{
- GtkSnapshot *sub = gtk_snapshot_new ();
+ GtkSnapshot *sub = gtk_snapshot_new_with_parent (snapshot);
crenderer->snapshot = sub;
render_para (crenderer, 0, line_display,