[at-spi2-core] Fix atspi_selection_get_selected_child
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Fix atspi_selection_get_selected_child
- Date: Fri, 4 Feb 2011 19:41:49 +0000 (UTC)
commit 52ce7dd238dddeeaaff1c7b0008b12a7aa1de6ed
Author: Mike Gorse <mgorse novell com>
Date: Fri Feb 4 13:44:46 2011 -0600
Fix atspi_selection_get_selected_child
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 00cf73e..6b4e2aa 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]