reply = dbus_message_new_method_return (message);
if (!reply) return NULL;
dbus_message_iter_init_append (reply, &iter);
- if (!dbus_message_iter_open_container (&iter, DBUS_TYPE_ARRAY, "o", &iter_array))
+ if (!dbus_message_iter_open_container (&iter, DBUS_TYPE_ARRAY, "s", &iter_array))
{
goto oom;
}
{
app = g_list_nth_data (desktop->applications, i);
path = (app? app->path: SPI_DBUS_PATH_NULL);
- dbus_message_iter_append_basic (&iter_array, DBUS_TYPE_OBJECT_PATH, &path);
+ dbus_message_iter_append_basic (&iter_array, DBUS_TYPE_STRING, &path);
}
if (!dbus_message_iter_close_container (&iter, &iter_array))
{
void
spi_registry_initialize_desktop_interface (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Accessible", methods,
+ droute_add_interface (data, SPI_DBUS_INTERFACE_DESKTOP, methods,
properties, NULL, NULL);
};
#define SPI_DBUS_INTERFACE_COMPONENT "org.freedesktop.atspi.Component"
#define SPI_DBUS_INTERFACE_DEC "org.freedesktop.atspi.DeviceEventController"
#define SPI_DBUS_INTERFACE_DEVICE_EVENT_LISTENER "org.freedesktop.atspi.DeviceEventListener"
+#define SPI_DBUS_INTERFACE_DESKTOP "org.freedesktop.atspi.Desktop"
#define SPI_DBUS_INTERFACE_DOCUMENT "org.freedesktop.atspi.Document"
#define SPI_DBUS_INTERFACE_EDITABLE_TEXT "org.freedesktop.atspi.EditableText"
#define SPI_DBUS_INTERFACE_HYPERLINK "org.freedesktop.atspi.Hyperlink"
<xi:include href="org.freedesktop.atspi.Application.xml"/>
<xi:include href="Accessibility_Registry_Common.xml"/>
<xi:include href="org.freedesktop.atspi.Registry.xml"/>
+<xi:include href="org.freedesktop.atspi.Desktop.xml"/>
<xi:include href="org.freedesktop.atspi.DeviceEventController.xml"/>
<xi:include href="org.freedesktop.atspi.DeviceEventListener.xml"/>
<xi:include href="Accessibility_Relation.xml"/>
org.freedesktop.atspi.Action.xml \
org.freedesktop.atspi.Application.xml \
org.freedesktop.atspi.Component.xml \
+ org.freedesktop.atspi.Desktop.xml \
org.freedesktop.atspi.Document.xml \
org.freedesktop.atspi.EditableText.xml \
org.freedesktop.atspi.Hyperlink.xml \
--- /dev/null
+<node name="/node" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
+
+<tp:title>AT-SPI - Assistive Technology Service Provider Interface </tp:title>
+<tp:copyright>Copyright 2008 Novell, Inc.</tp:copyright>
+<tp:copyright>Copyright 2001 Sun Microsystems Inc.</tp:copyright>
+<tp:license xmlns="http://www.w3.org/1999/xhtml">
+ <p>This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.</p>
+
+ <p>This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.</p>
+
+ <p>You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.</p>
+</tp:license>
+<interface name="org.freedesktop.atspi.Desktop">
+ <tp:property name="childCount" type="i" access="read">
+ <tp:docstring>
+ childCount: the number of children contained by this object.
+ </tp:docstring>
+ </tp:property>
+ <method name="getChildren">
+ <tp:docstring>
+ Get the accessible children of this object.
+ </tp:docstring>
+ <arg direction="out" type="as" tp:type="AccessibleSet">
+ <tp:docstring>
+ the ::Accessible children of this object.
+ </tp:docstring>
+ </arg>
+ </method>
+ <method name="getChildAtIndex">
+ <tp:docstring>
+ Get the accessible child of this object at \c index.
+ </tp:docstring>
+ <arg direction="in" name="index" type="i">
+ <tp:docstring>
+ an in parameter indicating which child is requested (zero-indexed).
+ </tp:docstring>
+ </arg>
+ <arg direction="out" type="s" tp:type="Accessible">
+ <tp:docstring>
+ the 'nth' ::Accessible child of this object.
+ </tp:docstring>
+ </arg>
+ </method>
+</interface>
+</node>