vertical-row: Don't manually unparent child anymore

In the GTK3 days, HdyPreferencesRow (and GtkListBoxRow) did not
automatically unparent children.

In GTK4, AdwPreferencesRow (and GtkListBoxRow) do, so stop manually
unparenting child widgets.
This commit is contained in:
Matthijs Velsink 2024-05-17 01:27:19 +02:00 committed by Felipe Borges
parent 80d86f9d89
commit e45ae68a5b

View file

@ -189,10 +189,6 @@ cc_vertical_row_dispose (GObject *object)
}
cc_vertical_row_set_activatable_widget (self, NULL);
if (priv->header != NULL) {
gtk_widget_unparent (GTK_WIDGET (priv->header));
priv->header = NULL;
}
G_OBJECT_CLASS (cc_vertical_row_parent_class)->dispose (object);
}