From 9820d25cf9497f8ee1f42b011a8949a94f6ba8da Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 3 Mar 2023 15:28:27 +0000 Subject: [PATCH] a11y: Fix GtkStackPage first accessible child The first accessible child is the child widget of the GtkStackPage, not the first child of the widget. --- gtk/gtkstack.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c index 91c949c1e2..0975ecf472 100644 --- a/gtk/gtkstack.c +++ b/gtk/gtkstack.c @@ -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 *