summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sanchez Prada <msanchez@igalia.com>2011-11-11 19:12:40 +0100
committerMike Gorse <mgorse@novell.com>2011-11-14 17:30:48 -0600
commit44cf4c63fca2be68b423373d86aa66d9207866ad (patch)
tree48b967ce13565a520e47a4a252bbe986f4283976
parent18d98d35c452678efc2bf09f38fb2d0594641613 (diff)
downloadat-spi2-atk-44cf4c63fca2be68b423373d86aa66d9207866ad.tar.gz
Make sure the a11y hierarchy under an AtkPlug is generated when embedding.
It should be enough to retrieve some info about the children, in the socket adaptor's handler for the "Embedded" D-Bus method. Asking for the number of the plug's children seems to be a good candidate. https://bugzilla.gnome.org/show_bug.cgi?id=663876
-rw-r--r--atk-adaptor/adaptors/socket-adaptor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/atk-adaptor/adaptors/socket-adaptor.c b/atk-adaptor/adaptors/socket-adaptor.c
index ac7f646..d7ebe5f 100644
--- a/atk-adaptor/adaptors/socket-adaptor.c
+++ b/atk-adaptor/adaptors/socket-adaptor.c
@@ -187,6 +187,12 @@ impl_Embedded (DBusConnection *bus,
iface->get_size = atspi_plug_component_get_size;
iface->get_position = atspi_plug_component_get_position;
}
+
+ /* Retrieve some info about the children, if they exist, when
+ embedding the plug to ensure the a11y subtree is generated.
+ https://bugzilla.gnome.org/show_bug.cgi?id=663876 */
+ atk_object_get_n_accessible_children (object);
+
return dbus_message_new_method_return (message);
}