aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-03-30 16:23:39 -0500
committerTed Gould <ted@gould.cx>2012-03-30 16:23:39 -0500
commit37eaae37fb9dc7163e3e91bc81debcca22ae46ff (patch)
treeb344bc9cd89e3f38c2f3e9e9991ff1c1b2c1a112 /libdbusmenu-glib
parent73537ff947c6800ac432e5e70b0a1ab18f6f0a88 (diff)
downloadlibdbusmenu-37eaae37fb9dc7163e3e91bc81debcca22ae46ff.tar.gz
libdbusmenu-37eaae37fb9dc7163e3e91bc81debcca22ae46ff.tar.bz2
libdbusmenu-37eaae37fb9dc7163e3e91bc81debcca22ae46ff.zip
Unpacking the tuple
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/server.c4
1 files changed, 3 insertions, 1 deletions
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;
}