projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide a SetCurrentValue method in the value adaptor to set the
[platform/core/uifw/at-spi2-atk.git]
/
atk-adaptor
/
adaptors
/
selection-adaptor.c
diff --git
a/atk-adaptor/adaptors/selection-adaptor.c
b/atk-adaptor/adaptors/selection-adaptor.c
index
0f6b722
..
353113d
100644
(file)
--- a/
atk-adaptor/adaptors/selection-adaptor.c
+++ b/
atk-adaptor/adaptors/selection-adaptor.c
@@
-53,6
+53,7
@@
impl_GetSelectedChild (DBusConnection * bus, DBusMessage * message,
void *user_data)
{
AtkSelection *selection = (AtkSelection *) user_data;
void *user_data)
{
AtkSelection *selection = (AtkSelection *) user_data;
+ DBusMessage *reply;
DBusError error;
dbus_int32_t selectedChildIndex;
AtkObject *atk_object;
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 droute_invalid_arguments_error (message);
}
atk_object = atk_selection_ref_selection (selection, selectedChildIndex);
- return spi_object_return_reference (message, atk_object, TRUE);
+ reply = spi_object_return_reference (message, atk_object);
+ g_object_unref (atk_object);
+
+ return reply;
}
static DBusMessage *
}
static DBusMessage *