X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=blobdiff_plain;f=atk-adaptor%2Fadaptors%2Fselection-adaptor.c;h=23b0a4fa57b7fb98590a0df6114540fd3e173691;hp=bf122506db92e352f1abb761c9e458724c5e54b3;hb=20958d891139849067a0e784e04c35cc3c575c3d;hpb=41506b34b47d6401430286eeef9ee29b6e394fb2 diff --git a/atk-adaptor/adaptors/selection-adaptor.c b/atk-adaptor/adaptors/selection-adaptor.c index bf12250..23b0a4f 100644 --- a/atk-adaptor/adaptors/selection-adaptor.c +++ b/atk-adaptor/adaptors/selection-adaptor.c @@ -25,7 +25,7 @@ #include #include -#include "common/spi-dbus.h" +#include "spi-dbus.h" #include "object.h" #include "introspection.h" @@ -53,6 +53,7 @@ impl_GetSelectedChild (DBusConnection * bus, DBusMessage * message, void *user_data) { AtkSelection *selection = (AtkSelection *) user_data; + DBusMessage *reply; DBusError error; dbus_int32_t selectedChildIndex; AtkObject *atk_object; @@ -67,7 +68,10 @@ impl_GetSelectedChild (DBusConnection * bus, DBusMessage * message, return droute_invalid_arguments_error (message); } atk_object = atk_selection_ref_selection (selection, selectedChildIndex); - return spi_object_return_reference (message, atk_object); + reply = spi_object_return_reference (message, atk_object); + g_object_unref (atk_object); + + return reply; } static DBusMessage * @@ -255,7 +259,7 @@ void spi_initialize_selection (DRoutePath * path) { droute_path_add_interface (path, - SPI_DBUS_INTERFACE_SELECTION, - spi_org_freedesktop_atspi_Selection, + ATSPI_DBUS_INTERFACE_SELECTION, + spi_org_a11y_atspi_Selection, methods, properties); };