diff options
author | Ted Gould <ted@gould.cx> | 2011-02-14 16:19:09 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-14 16:19:09 -0600 |
commit | bf3230927208a3bcd5f8f5edb000e14481ffb9b8 (patch) | |
tree | bb01f546767410a8323048bb440f4299082c123c /libdbusmenu-glib | |
parent | 9e1ab7f70ffee850bd09660d27199ece367b0c5d (diff) | |
download | libdbusmenu-bf3230927208a3bcd5f8f5edb000e14481ffb9b8.tar.gz libdbusmenu-bf3230927208a3bcd5f8f5edb000e14481ffb9b8.tar.bz2 libdbusmenu-bf3230927208a3bcd5f8f5edb000e14481ffb9b8.zip |
Making the build of the message more explicit and correct
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/client.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index fb4509b..60ec1ee 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -1625,10 +1625,17 @@ update_layout (DbusmenuClient * client) priv->layoutcall = g_cancellable_new(); + GVariantBuilder tupleb; + g_variant_builder_init(&tupleb, G_VARIANT_TYPE_TUPLE); + + g_variant_builder_add_value(&tupleb, g_variant_new_int32(0)); // root + g_variant_builder_add_value(&tupleb, g_variant_new_int32(-1)); // recurse + g_variant_builder_add_value(&tupleb, g_variant_new_array(G_VARIANT_TYPE_STRING, NULL, 0)); // props + g_object_ref(G_OBJECT(client)); g_dbus_proxy_call(priv->menuproxy, "GetLayout", - g_variant_new("(iia(s))", 0, -1, NULL), /* root */ + g_variant_builder_end(&tupleb), G_DBUS_CALL_FLAGS_NONE, -1, /* timeout */ priv->layoutcall, /* cancellable */ |