X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=atk-adaptor%2Fadaptors%2Fhypertext-adaptor.c;h=dbe1ffdb52872a53195b07c50ffc519b5fd1b0ce;hb=7a6ddd12bc6337f7dbe07b4dbbfebf6f9787023c;hp=082dde3895458780501f9d08502c385987ccb908;hpb=d5d4ced0bea6b1b1e00b0549e15752176d6ef5dc;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/atk-adaptor/adaptors/hypertext-adaptor.c b/atk-adaptor/adaptors/hypertext-adaptor.c index 082dde3..dbe1ffd 100644 --- a/atk-adaptor/adaptors/hypertext-adaptor.c +++ b/atk-adaptor/adaptors/hypertext-adaptor.c @@ -26,7 +26,9 @@ #include #include "common/spi-dbus.h" -#include "accessible-marshaller.h" +#include "object.h" + +#include "introspection.h" static DBusMessage * impl_GetNLinks (DBusConnection * bus, DBusMessage * message, void *user_data) @@ -64,8 +66,10 @@ impl_GetLink (DBusConnection * bus, DBusMessage * message, void *user_data) return droute_invalid_arguments_error (message); } link = atk_hypertext_get_link (hypertext, linkIndex); - return spi_dbus_return_hyperlink (message, link, ATK_OBJECT (hypertext), - TRUE); + /*The above line doesn't ref the link, and the next call is going to unref*/ + if (link) + g_object_ref (link); + return spi_hyperlink_return_reference (message, link); } static DBusMessage * @@ -107,5 +111,5 @@ void spi_initialize_hypertext (DRoutePath * path) { droute_path_add_interface (path, - SPI_DBUS_INTERFACE_HYPERTEXT, methods, NULL); + SPI_DBUS_INTERFACE_HYPERTEXT, spi_org_a11y_atspi_Hypertext, methods, NULL); };