diff options
author | Ted Gould <ted@gould.cx> | 2012-03-30 16:19:50 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-03-30 16:19:50 -0500 |
commit | 8977e1ef7f5c2b7e98351ce942a4cac684f4ab05 (patch) | |
tree | 24f42e989cd1c20f125e632fd5d665077f56813b | |
parent | 5cefd27bef67d8408c403edce24d4ab3bbc8fc67 (diff) | |
download | libdbusmenu-8977e1ef7f5c2b7e98351ce942a4cac684f4ab05.tar.gz libdbusmenu-8977e1ef7f5c2b7e98351ce942a4cac684f4ab05.tar.bz2 libdbusmenu-8977e1ef7f5c2b7e98351ce942a4cac684f4ab05.zip |
Making sure the variant is appropriately wrapped
-rw-r--r-- | libdbusmenu-glib/client.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |