diff options
author | Ted Gould <ted@gould.cx> | 2012-04-09 10:08:06 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-04-09 10:08:06 -0500 |
commit | 29097ccb25899f33f62a65a85ffdbd9250945e00 (patch) | |
tree | b403926743e8439279669a1a2693b92f3084c238 /libdbusmenu-glib | |
parent | 2d60549a2394ce7d73907abcaca22b48553d6c5b (diff) | |
download | libdbusmenu-29097ccb25899f33f62a65a85ffdbd9250945e00.tar.gz libdbusmenu-29097ccb25899f33f62a65a85ffdbd9250945e00.tar.bz2 libdbusmenu-29097ccb25899f33f62a65a85ffdbd9250945e00.zip |
Pull the items out of the tuple
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/server.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index 091b243..9e5b714 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -1831,8 +1831,9 @@ bus_about_to_show_group (DbusmenuServer * server, GVariant * params, GDBusMethod gint32 id; GVariantIter iter; GVariantBuilder builder; - - g_variant_iter_init(&iter, params); + + GVariant * items = g_variant_get_child_value(params, 0); + g_variant_iter_init(&iter, items); g_variant_builder_init(&builder, G_VARIANT_TYPE("ai")); gboolean gotone = FALSE; @@ -1872,6 +1873,7 @@ bus_about_to_show_group (DbusmenuServer * server, GVariant * params, GDBusMethod } g_variant_unref(errors); + g_variant_unref(items); return; } |