summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2023-03-03 15:28:27 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2023-03-03 18:02:22 +0000
commit9820d25cf9497f8ee1f42b011a8949a94f6ba8da (patch)
tree4adf945f91d68a6f57e8419b8c630235172ea802
parentdbb2cb22ca78d1fa7b089a2805f2abb695d790ed (diff)
downloadgtk+-9820d25cf9497f8ee1f42b011a8949a94f6ba8da.tar.gz
a11y: Fix GtkStackPage first accessible child
The first accessible child is the child widget of the GtkStackPage, not the first child of the widget.
-rw-r--r--gtk/gtkstack.c5
1 files changed, 1 insertions, 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 *