a11y: Fix GtkStackPage first accessible child
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 3 Mar 2023 15:28:27 +0000 (15:28 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 3 Mar 2023 18:02:22 +0000 (18:02 +0000)
The first accessible child is the child widget of the GtkStackPage, not
the first child of the widget.

gtk/gtkstack.c

index 91c949c1e2503305feecfb8931767181076abfce..0975ecf47268ba794a533b7b87942dda66bce0a1 100644 (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 *