textview: only snapshot GtkTextViewChild once

This was causing double snapshotting of textview children because the
parent snapshot will also iterate and snapshot children.
This commit is contained in:
Christian Hergert 2024-03-05 11:41:11 -08:00
parent f432ee775f
commit bdc43b8fca

View File

@ -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);