aboutsummaryrefslogtreecommitdiff
path: root/tools/dbusmenu-dumper.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-17 11:04:40 -0600
committerTed Gould <ted@gould.cx>2011-02-17 11:04:40 -0600
commit44927e6da03d633f0958ce5e04e62e752a43d201 (patch)
tree0e5f56cf5a8bfd5a455d3fe82f3280bbbd42b852 /tools/dbusmenu-dumper.c
parentdf78fc4c1a098aa95fe530028b26a0f175bb4cf4 (diff)
parent87703b408d42ce97b5a64142b0c33951d366890a (diff)
downloadlibdbusmenu-44927e6da03d633f0958ce5e04e62e752a43d201.tar.gz
libdbusmenu-44927e6da03d633f0958ce5e04e62e752a43d201.tar.bz2
libdbusmenu-44927e6da03d633f0958ce5e04e62e752a43d201.zip
Import upstream version 0.3.98
Diffstat (limited to 'tools/dbusmenu-dumper.c')
-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);