diff options
author | Ted Gould <ted@gould.cx> | 2011-01-26 11:12:04 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-01-26 11:12:04 -0600 |
commit | 025b5f2dfad9c8bd65d1c6b055bea2d8fd1ab33d (patch) | |
tree | 4e5ca0cbfd410d525fb3e7346b03fdf0da296b83 | |
parent | ea502b22c0b3d34e58e0db774d5edfd28b7f2d41 (diff) | |
download | libdbusmenu-025b5f2dfad9c8bd65d1c6b055bea2d8fd1ab33d.tar.gz libdbusmenu-025b5f2dfad9c8bd65d1c6b055bea2d8fd1ab33d.tar.bz2 libdbusmenu-025b5f2dfad9c8bd65d1c6b055bea2d8fd1ab33d.zip |
Make the tuple without specifying the type so we don't need to build a new one.
-rw-r--r-- | libdbusmenu-glib/server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index b6e5fa1..adb9f91 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -1026,7 +1026,8 @@ bus_get_children (DbusmenuServer * server, GVariant * params, GDBusMethodInvocat g_list_foreach(children, serialize_menuitem, &builder); - ret = g_variant_new("(a(ia{sv}))", g_variant_builder_end(&builder)); + GVariant * end = g_variant_builder_end(&builder); + ret = g_variant_new_tuple(&end, 1); } else { GError * error = NULL; ret = g_variant_parse(g_variant_type_new("(a(ia{sv}))"), "([(0, {})],)", NULL, NULL, &error); |