From d566771262e1a934b04da72c99710db2e3366b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Tue, 14 Feb 2023 14:44:20 +0100 Subject: [PATCH] Preserve the correct a11y tree in GtkStack Now, when we can, ensure that the GtkStackPage is the parent of its widget. --- gtk/gtkstack.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c index 64bc3ae7d0..025bd663c7 100644 --- a/gtk/gtkstack.c +++ b/gtk/gtkstack.c @@ -410,6 +410,10 @@ gtk_stack_page_set_property (GObject *object, { case CHILD_PROP_CHILD: g_set_object (&info->widget, g_value_get_object (value)); + gtk_accessible_set_accessible_parent ( + GTK_ACCESSIBLE (info->widget), + GTK_ACCESSIBLE (info), + NULL); break; case CHILD_PROP_NAME: