[glib/wip/menus] Make org.gtk.Actions.Describe work



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]