diff options
Diffstat (limited to 'atspi')
-rw-r--r-- | atspi/atspi-selection.c | 8 |
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); } /** |