From 37eaae37fb9dc7163e3e91bc81debcca22ae46ff Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 30 Mar 2012 16:23:39 -0500 Subject: Unpacking the tuple --- libdbusmenu-glib/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libdbusmenu-glib') diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index 2ba45d9..091b243 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -1723,6 +1723,7 @@ bus_event_group (DbusmenuServer * server, GVariant * params, GDBusMethodInvocati return; } + GVariant * events = g_variant_get_child_value(params, 0); gint32 id; gchar *etype; GVariant *data; @@ -1730,7 +1731,7 @@ bus_event_group (DbusmenuServer * server, GVariant * params, GDBusMethodInvocati GVariantIter iter; GVariantBuilder builder; - g_variant_iter_init(&iter, params); + g_variant_iter_init(&iter, events); g_variant_builder_init(&builder, G_VARIANT_TYPE("ai")); gboolean gotone = FALSE; @@ -1760,6 +1761,7 @@ bus_event_group (DbusmenuServer * server, GVariant * params, GDBusMethodInvocati } g_variant_unref(errors); + g_variant_unref(events); return; } -- cgit v1.2.3