diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-10-24 13:17:20 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-10-24 13:17:20 -0400 |
commit | 274f9ad919057c455d4c1b95184a26ac80b3d812 (patch) | |
tree | 79d001780fa6307566ea0f4728abd2192ee2b03c /gtk/a11y | |
parent | 89a8c896633ecaf1080bf206a934f08bd477efaf (diff) | |
download | gtk+-274f9ad919057c455d4c1b95184a26ac80b3d812.tar.gz |
a11y: Emit child notification when toplevels get hidden
When a toplevel window gets hidden (and not destroyed),
the frontend code set the HIDDEN state, and we need to
emit child notification when that happens.
Diffstat (limited to 'gtk/a11y')
-rw-r--r-- | gtk/a11y/gtkatspicontext.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c index f223d13062..0b7c5eeb93 100644 --- a/gtk/a11y/gtkatspicontext.c +++ b/gtk/a11y/gtkatspicontext.c @@ -867,7 +867,13 @@ gtk_at_spi_context_state_change (GtkATContext *ctx, GTK_ACCESSIBLE (widget)); } else - g_warning ("Setting GTK_ACCESSIBLE_STATE_HIDDEN on toplevels is not supported"); + { + gtk_at_spi_root_child_changed (self->root, + hidden ? GTK_ACCESSIBLE_CHILD_STATE_REMOVED + : GTK_ACCESSIBLE_CHILD_STATE_ADDED, + G_MAXUINT, + widget); + } } if (changed_states & GTK_ACCESSIBLE_STATE_CHANGE_BUSY) |