summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-24 22:04:26 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-24 22:04:26 -0400
commit9a943e21d382a21bdfe573ccd0f0e7dd4e3fc033 (patch)
tree9c613eacb6358941a5d42bcbc3ead2a9d0e778d9
parent7c106578ed37819bb48fc6d33a4bcb83fc6fa77b (diff)
downloadgtk+-9a943e21d382a21bdfe573ccd0f0e7dd4e3fc033.tar.gz
stack: Update HIDDEN a11y state for stack pages
This will let us handle additions and removals in the AT-SPI backend.
-rw-r--r--gtk/gtkstack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index b06bc3629d..fdf79fbe61 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -1304,6 +1304,10 @@ update_child_visible (GtkStack *stack,
gtk_widget_set_child_visible (priv->last_visible_child->widget, FALSE);
priv->last_visible_child = NULL;
}
+
+ gtk_accessible_update_state (GTK_ACCESSIBLE (child_info),
+ GTK_ACCESSIBLE_STATE_HIDDEN, !visible,
+ -1);
}
static void