diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2023-03-03 15:28:27 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2023-03-03 18:02:22 +0000 |
commit | 9820d25cf9497f8ee1f42b011a8949a94f6ba8da (patch) | |
tree | 4adf945f91d68a6f57e8419b8c630235172ea802 | |
parent | dbb2cb22ca78d1fa7b089a2805f2abb695d790ed (diff) | |
download | gtk+-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.c | 5 |
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 * |