diff options
author | Ted Gould <ted@gould.cx> | 2011-02-18 12:54:09 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-18 12:54:09 -0600 |
commit | 92029bc783017bec46a862ae79d72076157ac38f (patch) | |
tree | 5cd21774ca4416d4858bea14b659eb4f4d8d9d5d /tools | |
parent | bcedc26848a0fe4f2f67a129d34976f69eb03fdf (diff) | |
parent | 87703b408d42ce97b5a64142b0c33951d366890a (diff) | |
download | libdbusmenu-92029bc783017bec46a862ae79d72076157ac38f.tar.gz libdbusmenu-92029bc783017bec46a862ae79d72076157ac38f.tar.bz2 libdbusmenu-92029bc783017bec46a862ae79d72076157ac38f.zip |
Updating to trunk
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dbusmenu-dumper.c | 6 |
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); |