From bdc43b8fca75a8551cb66d7db5b7c71bfd8b7e30 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 5 Mar 2024 11:41:11 -0800 Subject: [PATCH] textview: only snapshot GtkTextViewChild once This was causing double snapshotting of textview children because the parent snapshot will also iterate and snapshot children. --- gtk/gtktextviewchild.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gtk/gtktextviewchild.c b/gtk/gtktextviewchild.c index 4532b99910..2d2c9c045f 100644 --- a/gtk/gtktextviewchild.c +++ b/gtk/gtktextviewchild.c @@ -254,8 +254,6 @@ gtk_text_view_child_snapshot (GtkWidget *widget, GtkTextViewChild *self = GTK_TEXT_VIEW_CHILD (widget); const GList *iter; - GTK_WIDGET_CLASS (gtk_text_view_child_parent_class)->snapshot (widget, snapshot); - if (self->child) gtk_widget_snapshot_child (widget, self->child, snapshot);