summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-19 20:39:32 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-04-19 20:39:32 -0400
commit5f2c08cef1683d9f998548db4f614a524c429f03 (patch)
treea2d3dedc604b544f1886fe409b7fc231734a4a50
parenta455db01a0e00bb14c63a554ad85bae59a39e83b (diff)
downloadgtk+-5f2c08cef1683d9f998548db4f614a524c429f03.tar.gz
a11y: Make things appear on focus in
We are starting with a pretty empty a11y object tree, and we want orca to bring more of it into existence by navigating the tree. But that only happens when we send it events. Primarily focus events, which come in from GTK via the platform_change mechanism. So realize the context when we are sending platform_changes, otherwise, orca never gets the mesage.
-rw-r--r--gtk/gtkatcontext.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkatcontext.c b/gtk/gtkatcontext.c
index 83c9be2a87..709e0f063f 100644
--- a/gtk/gtkatcontext.c
+++ b/gtk/gtkatcontext.c
@@ -1172,8 +1172,7 @@ void
gtk_at_context_platform_changed (GtkATContext *self,
GtkAccessiblePlatformChange change)
{
- if (!self->realized)
- return;
+ gtk_at_context_realize (self);
GTK_AT_CONTEXT_GET_CLASS (self)->platform_change (self, change);
}