aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMartin Pitt <martin@piware.de>2011-02-16 16:59:17 +0100
committerMartin Pitt <martin@piware.de>2011-02-16 16:59:17 +0100
commit273fd4ea8fb0376256d773914786ebc433399c6f (patch)
tree0278e3039d09904447352802707e270e6e093b83 /tools
parent5c1bbec8381af0246b813a095f816b55e2f8dc06 (diff)
downloadlibdbusmenu-273fd4ea8fb0376256d773914786ebc433399c6f.tar.gz
libdbusmenu-273fd4ea8fb0376256d773914786ebc433399c6f.tar.bz2
libdbusmenu-273fd4ea8fb0376256d773914786ebc433399c6f.zip
tools/dbusmenu-dumper: Proper GVariant handling of gdbus call to make this actually work
Diffstat (limited to 'tools')
-rw-r--r--tools/dbusmenu-dumper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/dbusmenu-dumper.c b/tools/dbusmenu-dumper.c
index bd986e8..2db437d 100644
--- a/tools/dbusmenu-dumper.c
+++ b/tools/dbusmenu-dumper.c
@@ -270,10 +270,12 @@ init_dbus_vars_from_window(Window window)
error = NULL;
GVariant * retval;
+ GVariant * args[1];
+ args[0] = g_variant_new("u", window);
retval = g_dbus_proxy_call_sync(proxy,
"GetMenuForWindow",
- g_variant_new("u", window),
+ g_variant_new_tuple(args, 1),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
@@ -285,7 +287,7 @@ init_dbus_vars_from_window(Window window)
return FALSE;
}
- g_variant_get(retval, "so", &dbusname, &dbusobject);
+ g_variant_get(retval, "(so)", &dbusname, &dbusobject);
g_variant_unref(retval);
g_object_unref(proxy);