summaryrefslogtreecommitdiff
path: root/atspi/atspi-selection.c
diff options
context:
space:
mode:
authorMike Gorse <mgorse@novell.com>2011-02-04 13:44:46 -0600
committerMike Gorse <mgorse@novell.com>2011-02-04 13:44:46 -0600
commit52ce7dd238dddeeaaff1c7b0008b12a7aa1de6ed (patch)
tree27b21453878801911db41d1013cfc9e6a606395c /atspi/atspi-selection.c
parentf56d3cf94f3b3a9ad1d290b033be3d31db3b667d (diff)
downloadat-spi2-core-52ce7dd238dddeeaaff1c7b0008b12a7aa1de6ed.tar.gz
Fix atspi_selection_get_selected_child
Diffstat (limited to 'atspi/atspi-selection.c')
-rw-r--r--atspi/atspi-selection.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/atspi/atspi-selection.c b/atspi/atspi-selection.c
index 00cf73e6..6b4e2aa9 100644
--- a/atspi/atspi-selection.c
+++ b/atspi/atspi-selection.c
@@ -69,13 +69,15 @@ atspi_selection_get_selected_child (AtspiSelection *obj,
gint selected_child_index, GError **error)
{
dbus_int32_t d_selected_child_index = selected_child_index;
- AtspiAccessible *child = NULL;
+ DBusMessage *reply;
g_return_val_if_fail (obj != NULL, NULL);
- _atspi_dbus_call (obj, atspi_interface_selection, "GetSelectedChild", error, "i=>(so)", &d_selected_child_index, &child);
+ reply = _atspi_dbus_call_partial (obj, atspi_interface_selection,
+ "GetSelectedChild", error, "i",
+ d_selected_child_index);
- return child;
+ return _atspi_dbus_return_accessible_from_message (reply);
}
/**