Make sure the a11y hierarchy under an AtkPlug is generated when embedding.
authorMario Sanchez Prada <msanchez@igalia.com>
Fri, 11 Nov 2011 18:12:40 +0000 (19:12 +0100)
committerMario Sanchez Prada <msanchez@igalia.com>
Fri, 11 Nov 2011 19:34:27 +0000 (20:34 +0100)
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

index ac7f646..d7ebe5f 100644 (file)
@@ -187,6 +187,12 @@ impl_Embedded (DBusConnection *bus,
       iface->get_size = atspi_plug_component_get_size;
       iface->get_position = atspi_plug_component_get_position;
     }
       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);
 }
 
   return dbus_message_new_method_return (message);
 }