projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9ca60c
)
textview: use gtk_snapshot_new_with_parent()
author
Christian Hergert
<chergert@redhat.com>
Wed, 9 Oct 2019 19:56:06 +0000
(12:56 -0700)
committer
Christian Hergert
<chergert@redhat.com>
Wed, 9 Oct 2019 19:56:06 +0000
(12:56 -0700)
As recommended by Timm Bäder at:
https://gitlab.gnome.org/GNOME/gtk/commit/
3b959456ac5335639e9642571f59f17ec8ee97f7
#note_621655
gtk/gtktextlayout.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextlayout.c
b/gtk/gtktextlayout.c
index d7c270a9dc93679642dc94d9ea1a90a3075316cd..7b60b13f3f4befacfafe33aef80dd2b1a727c1f7 100644
(file)
--- 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,