a11y: Fix GtkStackPage first accessible child

The first accessible child is the child widget of the GtkStackPage, not
the first child of the widget.
This commit is contained in:
Emmanuele Bassi
2023-03-03 15:28:27 +00:00
parent dbb2cb22ca
commit 9820d25cf9

View File

@@ -278,14 +278,11 @@ static GtkAccessible *
gtk_stack_page_accessible_get_first_accessible_child (GtkAccessible *accessible)
{
GtkStackPage *page = GTK_STACK_PAGE (accessible);
GtkWidget *child;
if (page->widget == NULL)
return NULL;
child = _gtk_widget_get_first_child (page->widget);
return GTK_ACCESSIBLE (g_object_ref (child));
return GTK_ACCESSIBLE (g_object_ref (page->widget));
}
static GtkAccessible *