a11y: Defer object registration after root registration
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 19 Apr 2022 15:12:08 +0000 (16:12 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 19 Apr 2022 15:35:27 +0000 (16:35 +0100)
commit17262d1572c9e994927f1db798f9f0f2da1a39ef
tree2bc05a293a85c33675fd97b8143beb03cdd77dc0
parent4dcd02e85315f487310e2e01fe9412706a77dc35
a11y: Defer object registration after root registration

The root accessible object is registered asynchronously, as it needs to
call a method on the AT-SPI registry daemon. This means we need to defer
registering the GtkAtSpiContext on the accessibility bus and in the
cache until after the registration is complete.

Fixes: #4825
gtk/a11y/gtkatspicontext.c
gtk/a11y/gtkatspiroot.c
gtk/a11y/gtkatspirootprivate.h