Convert droute introspection to use string literals created from
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / adaptors / hyperlink-adaptor.c
index 75521ed..d48e3f3 100644 (file)
@@ -25,8 +25,9 @@
 #include <atk/atk.h>
 #include <droute/droute.h>
 
-#include "accessible-marshaller.h"
 #include "common/spi-dbus.h"
+#include "introspection.h"
+#include "object.h"
 
 static AtkHyperlink *
 get_hyperlink (void *user_data)
@@ -80,8 +81,7 @@ impl_GetObject (DBusConnection * bus, DBusMessage * message, void *user_data)
       return droute_invalid_arguments_error (message);
     }
   atk_object = atk_hyperlink_get_object (link, i);
-  return spi_dbus_return_sub_object (message, G_OBJECT (atk_object),
-                                     G_OBJECT (link), FALSE);
+  return spi_object_return_reference (message, atk_object);
 }
 
 static DBusMessage *
@@ -154,5 +154,6 @@ spi_initialize_hyperlink (DRoutePath * path)
 {
   droute_path_add_interface (path,
                              SPI_DBUS_INTERFACE_HYPERLINK,
+                             spi_org_freedesktop_atspi_Hyperlink,
                              methods, properties);
 };