[gtk/matthiasc/atspi-child] a11y: Skip non-presented children when required
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/atspi-child] a11y: Skip non-presented children when required
- Date: Sat, 24 Oct 2020 15:23:09 +0000 (UTC)
commit 46e754a17d267476daca4ea8fe879060c71a7f54
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 24 11:22:09 2020 -0400
a11y: Skip non-presented children when required
Whenever we determine the index of a child, we need
to skip its non-presented siblings.
gtk/a11y/gtkatspicontext.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c
index 18a1d7ff9c..2e838b1ef6 100644
--- a/gtk/a11y/gtkatspicontext.c
+++ b/gtk/a11y/gtkatspicontext.c
@@ -1168,6 +1168,9 @@ gtk_at_spi_context_child_change (GtkATContext *ctx,
iter != NULL;
iter = gtk_widget_get_next_sibling (iter))
{
+ if (!gtk_accessible_should_present (GTK_ACCESSIBLE (iter)))
+ continue;
+
if (iter == child_widget)
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]