Call dbus_bus_register
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / introspectable.c
index 4909e30..780ea7f 100644 (file)
@@ -23,8 +23,8 @@
 #include <glib.h>
 #include <accessible.h>
 
-#include "droute/droute.h"
-#include "droute/introspect-loader.h"
+#include <droute/droute.h>
+#include <droute/introspect-loader.h>
 
 /*
  * This file contains an implementation of the D-Bus introspectable interface.
@@ -53,6 +53,8 @@ impl_introspect (DBusConnection *bus, DBusMessage *message,
   
   g_string_append_printf(output, spi_introspection_node_element, path);
 
+  spi_append_interface(output, "org.freedesktop.atspi.Accessible");
+
   if (ATK_IS_ACTION (object))
       spi_append_interface(output, "org.freedesktop.atspi.Action");
 
@@ -112,9 +114,9 @@ static DRouteMethod methods[] = {
  * Adds the introspectable interface to the DRoute object provided
  */
 void
-spi_initialize_introspectable (DRouteData *data)
+spi_initialize_introspectable (DRouteData *data, DRouteGetDatumFunction verify_object)
 {
-  droute_add_interface (data, "org.freedesktop.atspi.Introspectable",
+  droute_add_interface (data, "org.freedesktop.DBus.Introspectable",
                        methods, NULL,
-                       (DRouteGetDatumFunction) spi_dbus_get_path, NULL);
+                       verify_object, NULL);
 };