[glib/wip/menus] Make org.gtk.Actions.Describe work
- From: Matthias Clasen <matthiasc src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [glib/wip/menus] Make org.gtk.Actions.Describe work
 
- Date: Sun, 30 Oct 2011 04:01:29 +0000 (UTC)
 
commit de57ac594784953c7d376dc1c6e514f61dabd7ac
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]