[glib/wip/menus-rebase2: 55/64] Make org.gtk.Actions.Describe work
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/menus-rebase2: 55/64] Make org.gtk.Actions.Describe work
- Date: Fri, 18 Nov 2011 16:30:03 +0000 (UTC)
commit 86f0d1ff16a76664d184891c30c9f3ab9171f008
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Oct 30 00:00:27 2011 -0400
Make org.gtk.Actions.Describe work
The return value was missing one level of tupelization.
gio/gactiongroupexporter.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gio/gactiongroupexporter.c b/gio/gactiongroupexporter.c
index b1da1af..9673ff2 100644
--- a/gio/gactiongroupexporter.c
+++ b/gio/gactiongroupexporter.c
@@ -386,9 +386,11 @@ org_gtk_Actions_method_call (GDBusConnection *connection,
else if (g_str_equal (method_name, "Describe"))
{
const gchar *name;
+ GVariant *desc;
g_variant_get (parameters, "(&s)", &name);
- result = g_action_group_describe_action (exporter->action_group, name);
+ desc = g_action_group_describe_action (exporter->action_group, name);
+ result = g_variant_new ("(@(bgav))", desc);
}
else if (g_str_equal (method_name, "DescribeAll"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]