From bbb2097c4a351649da2acc659c4102b3c58034b2 Mon Sep 17 00:00:00 2001 From: Mario Sanchez Prada Date: Fri, 11 Nov 2011 19:12:40 +0100 Subject: [PATCH] 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 --- atk-adaptor/adaptors/socket-adaptor.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- 2.7.4