void
spi_initialize_accessible (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Accessible",
+ droute_add_interface (data, SPI_DBUS_INTERFACE_ACCESSIBLE,
methods, properties,
(DRouteGetDatumFunction) get_object_from_path, NULL);
};
void
spi_initialize_action (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Action",
+ droute_add_interface (data, SPI_DBUS_INTERFACE_ACTION,
methods, NULL,
(DRouteGetDatumFunction) get_action_from_path,
NULL);
void
spi_initialize_application (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Application",
+ droute_add_interface (data, SPI_DBUS_INTERFACE_APPLICATION,
methods, properties,
(DRouteGetDatumFunction) obj_is_root, NULL);
};
{
g_warning("Unknown type %d in property change signal", type);
}
- sig = dbus_message_new_signal(path, "org.freedesktop.atspi.Accessible", name);
+ sig = dbus_message_new_signal(path, SPI_DBUS_INTERFACE_ACCESSIBLE, name);
dbus_message_iter_init_append(sig, &iter);
if (!detail) detail = "";
dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &detail);
y = rect->y;
width = rect->width;
height = rect->height;
- sig = dbus_message_new_signal(path, "org.freedesktop.atspi.Accessible", name);
+ sig = dbus_message_new_signal(path, SPI_DBUS_INTERFACE_ACCESSIBLE, name);
if (!detail) detail = "";
if (sig)
{
static gboolean Accessibility_DeviceEventController_notifyListenersSync(const Accessibility_DeviceEvent *key_event)
{
- DBusMessage *message = dbus_message_new_method_call(SPI_DBUS_NAME_REGISTRY, SPI_DBUS_PATH_REGISTRY, "org.freedesktop.atspi.DeviceEventController", "notifyListenersSync");
+ DBusMessage *message = dbus_message_new_method_call(SPI_DBUS_NAME_REGISTRY, SPI_DBUS_PATH_REGISTRY, SPI_DBUS_INTERFACE_DEC);
DBusError error;
dbus_bool_t consumed = FALSE;
void
spi_initialize_component (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Component",
+ droute_add_interface (data, SPI_DBUS_INTERFACE_COMPONENT,
methods, NULL,
(DRouteGetDatumFunction) get_component_from_path,
NULL);
void
spi_initialize_document (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Document",
+ droute_add_interface (data, SPI_DBUS_INTERFACE_DOCUMENT,
methods, NULL,
(DRouteGetDatumFunction) get_document_from_path,
NULL);
void
spi_initialize_editabletext (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.EditableText",
+ droute_add_interface (data, SPI_DBUS_INTERFACE_EDITABLE_TEXT,
methods, NULL,
(DRouteGetDatumFunction) get_editable_from_path,
NULL);
void
spi_initialize_hyperlink (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Hyperlink",
+ droute_add_interface (data, SPI_DBUS_INTERFACE_HYPERLINK,
methods, properties,
(DRouteGetDatumFunction) get_hyperlink_from_path,
NULL);
void
spi_initialize_hypertext (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Hypertext",
+ droute_add_interface (data, SPI_DBUS_INTERFACE_HYPERTEXT,
methods, NULL,
(DRouteGetDatumFunction) get_hypertext_from_path,
NULL);
void
spi_initialize_image (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Image", methods,
+ droute_add_interface (data, SPI_DBUS_INTERFACE_IMAGE, methods,
properties,
(DRouteGetDatumFunction) get_image_from_path, NULL);
};
g_string_append_printf(output, spi_introspection_node_element, path);
- spi_append_interface(output, "org.freedesktop.atspi.Accessible");
+ spi_append_interface(output, SPI_DBUS_INTERFACE_ACCESSIBLE);
if (ATK_IS_ACTION (object))
- spi_append_interface(output, "org.freedesktop.atspi.Action");
+ spi_append_interface(output, SPI_DBUS_INTERFACE_ACTION);
if (ATK_IS_COMPONENT (object))
- spi_append_interface(output, "org.freedesktop.atspi.Component");
+ spi_append_interface(output, SPI_DBUS_INTERFACE_COMPONENT);
if (ATK_IS_EDITABLE_TEXT (object))
- spi_append_interface(output, "org.freedesktop.atspi.EditableText");
- else if (ATK_IS_TEXT (object))
- spi_append_interface(output, "org.freedesktop.atspi.Text");
+ spi_append_interface(output, SPI_DBUS_INTERFACE_EDITABLE_TEXT);
+
+ if (ATK_IS_TEXT (object))
+ spi_append_interface(output, SPI_DBUS_INTERFACE_TEXT);
if (ATK_IS_HYPERTEXT (object))
- spi_append_interface(output, "org.freedesktop.atspi.Hypertext");
+ spi_append_interface(output, SPI_DBUS_INTERFACE_HYPERTEXT);
if (ATK_IS_IMAGE (object))
- spi_append_interface(output, "org.freedesktop.atspi.Image");
+ spi_append_interface(output, SPI_DBUS_INTERFACE_IMAGE);
if (ATK_IS_SELECTION (object))
- spi_append_interface(output, "org.freedesktop.atspi.Selection");
+ spi_append_interface(output, SPI_DBUS_INTERFACE_SELECTION);
if (ATK_IS_TABLE (object))
- spi_append_interface(output, "org.freedesktop.atspi.Table");
+ spi_append_interface(output, SPI_DBUS_INTERFACE_TABLE);
if (ATK_IS_VALUE (object))
- spi_append_interface(output, "org.freedesktop.atspi.Value");
+ spi_append_interface(output, SPI_DBUS_INTERFACE_VALUE);
if (ATK_IS_STREAMABLE_CONTENT (object))
spi_append_interface(output, "org.freedesktop.atspi.StreamableContent");
if (ATK_IS_DOCUMENT (object))
{
spi_append_interface(output, "org.freedesktop.atspi.Collection");
- spi_append_interface(output, "org.freedesktop.atspi.Document");
+ spi_append_interface(output, SPI_DBUS_INTERFACE_DOCUMENT);
}
if (ATK_IS_HYPERLINK_IMPL (object))
- spi_append_interface(output, "org.freedesktop.atspi.Hyperlink");
+ spi_append_interface(output, SPI_DBUS_INTERFACE_HYPERLINK);
g_string_append(output, spi_introspection_footer);
final = g_string_free(output, FALSE);
void
spi_initialize_selection (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Selection",
+ droute_add_interface (data, SPI_DBUS_INTERFACE_SELECTION,
methods, properties,
(DRouteGetDatumFunction) get_selection_from_path,
NULL);
void
spi_initialize_table (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Table", methods,
+ droute_add_interface (data, SPI_DBUS_INTERFACE_TABLE, methods,
properties,
(DRouteGetDatumFunction) get_table_from_path, NULL);
};
void
spi_initialize_text (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Text", methods,
+ droute_add_interface (data, SPI_DBUS_INTERFACE_TEXT, methods,
properties,
(DRouteGetDatumFunction) get_text_from_path, NULL);
};
if (update_pending == 0) return FALSE;
//printf("Sending cache\n");
- message = dbus_message_new_signal("/org/freedesktop/atspi/tree", "org.freedesktop.atspi.Tree", "UpdateTree");
+ message = dbus_message_new_signal (SPI_DBUS_INTERFACE_TREE, "org.freedesktop.atspi.Tree", "updateTree");
if (!message) goto done;
dbus_message_iter_init_append (message, &iter);
dbus_message_iter_open_container (&iter, DBUS_TYPE_ARRAY, "(ooaoassus)",
void
spi_initialize_value (DRouteData * data)
{
- droute_add_interface (data, "org.freedesktop.atspi.Value", NULL,
+ droute_add_interface (data, SPI_DBUS_INTERFACE_VALUE, NULL,
properties,
(DRouteGetDatumFunction) get_value_from_path, NULL);
};