From 8977e1ef7f5c2b7e98351ce942a4cac684f4ab05 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 30 Mar 2012 16:19:50 -0500 Subject: Making sure the variant is appropriately wrapped --- libdbusmenu-glib/client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libdbusmenu-glib') diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 98329a1..7a37438 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -1667,10 +1667,11 @@ events_to_builder (gpointer data, gpointer user_data) g_variant_builder_add_value(&tuple, g_variant_new_int32(edata->id)); g_variant_builder_add_value(&tuple, g_variant_new_string(edata->event)); - g_variant_builder_add_value(&tuple, edata->variant); + g_variant_builder_add_value(&tuple, g_variant_new_variant(edata->variant)); g_variant_builder_add_value(&tuple, g_variant_new_uint32(edata->timestamp)); - g_variant_builder_add_value(builder, g_variant_builder_end(&tuple)); + GVariant * vtuple = g_variant_builder_end(&tuple); + g_variant_builder_add_value(builder, vtuple); return; } -- cgit v1.2.3