From: Christian Hergert Date: Wed, 9 Oct 2019 19:56:06 +0000 (-0700) Subject: textview: use gtk_snapshot_new_with_parent() X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~755 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c7a5d992869f04f3401af44bde640244c6fbb275;p=gtk4.git textview: use gtk_snapshot_new_with_parent() As recommended by Timm Bäder at: https://gitlab.gnome.org/GNOME/gtk/commit/3b959456ac5335639e9642571f59f17ec8ee97f7#note_621655 --- 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,