GtkContainerAccessible: avoid resurrecting accessibles

When removing a child, we don't want to resurrect its
accessible needlessly.
This commit is contained in:
Matthias Clasen 2014-10-14 23:58:37 -04:00
parent f99cbdf49f
commit ef62a872f5

View File

@ -150,7 +150,7 @@ gtk_container_accessible_real_remove_gtk (GtkContainer *container,
gint index; gint index;
atk_parent = ATK_OBJECT (data); atk_parent = ATK_OBJECT (data);
atk_child = gtk_widget_get_accessible (widget); atk_child = _gtk_widget_peek_accessible (widget);
if (atk_child == NULL) if (atk_child == NULL)
return 1; return 1;
accessible = GTK_CONTAINER_ACCESSIBLE (atk_parent); accessible = GTK_CONTAINER_ACCESSIBLE (atk_parent);