aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-04-09 10:08:06 -0500
committerTed Gould <ted@gould.cx>2012-04-09 10:08:06 -0500
commit29097ccb25899f33f62a65a85ffdbd9250945e00 (patch)
treeb403926743e8439279669a1a2693b92f3084c238 /libdbusmenu-glib
parent2d60549a2394ce7d73907abcaca22b48553d6c5b (diff)
downloadlibdbusmenu-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.c6
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;
}