[at-spi2-atk] Make sure the a11y hierarchy under an AtkPlug is generated when embedding.
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] Make sure the a11y hierarchy under an AtkPlug is generated when embedding.
- Date: Sat, 12 Nov 2011 00:15:34 +0000 (UTC)
commit bbb2097c4a351649da2acc659c4102b3c58034b2
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Fri Nov 11 19:12:40 2011 +0100
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 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]