[at-spi2-core] Return ChildCount property as a variant, per DBus spec
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Return ChildCount property as a variant, per DBus spec
- Date: Sat, 4 Dec 2010 10:13:35 +0000 (UTC)
commit 9c871393ee7418c174780b747ec24b0ac75dee7c
Author: Mike Gorse <mgorse novell com>
Date: Thu Dec 2 15:39:07 2010 -0500
Return ChildCount property as a variant, per DBus spec
registryd/registry.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/registryd/registry.c b/registryd/registry.c
index d3e0652..6a5f4d9 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -590,8 +590,15 @@ impl_get_ChildCount (DBusMessageIter * iter, void *user_data)
{
SpiRegistry *reg = SPI_REGISTRY (user_data);
dbus_int32_t rv = reg->apps->len;
+ dbus_bool_t result;
+ DBusMessageIter iter_variant;
- return dbus_message_iter_append_basic (iter, DBUS_TYPE_INT32, &rv);
+ if (!dbus_message_iter_open_container (iter, DBUS_TYPE_VARIANT, "i",
+ &iter_variant))
+ return FALSE;
+ result = dbus_message_iter_append_basic (&iter_variant, DBUS_TYPE_INT32, &rv);
+ dbus_message_iter_close_container (iter, &iter_variant);
+ return result;
}
static DBusMessage *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]