Revert "stack: clear accessible parent when removing child"
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 3 Mar 2023 01:39:24 +0000 (01:39 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 3 Mar 2023 01:39:24 +0000 (01:39 +0000)
This reverts commit 40d4441fd85742837d85d8509dc89355d39a1cdc.

The accessible parent of the child widget in a GtkStackPage is cleared
when the GtkATContext gets disposed, so we don't need to unset it
ourselves. This also avoids a temporary vivification of the GtkATContext
during dispose.

gtk/gtkstack.c

index 05ad60504b55062d73e484503812708829866c7d..05364388a2dc1883ada8f52cef8c98d83a87df15 100644 (file)
@@ -1726,7 +1726,6 @@ stack_remove (GtkStack  *stack,
   if (priv->last_visible_child == child_info)
     priv->last_visible_child = NULL;
 
-  gtk_accessible_set_accessible_parent (GTK_ACCESSIBLE (child), NULL, NULL);
   gtk_widget_unparent (child);
 
   g_clear_object (&child_info->widget);