From 8df1325334c7d8bb13efc389dd792548face022b Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 25 Apr 2012 10:28:24 +0200 Subject: [PATCH] _tp_asv_to_vardict: use _tp_boxed_to_variant() https://bugs.freedesktop.org/show_bug.cgi?id=30422 --- telepathy-glib/dbus.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/telepathy-glib/dbus.c b/telepathy-glib/dbus.c index 8b41484..9115385 100644 --- a/telepathy-glib/dbus.c +++ b/telepathy-glib/dbus.c @@ -1961,18 +1961,7 @@ tp_asv_dump (GHashTable *asv) GVariant * _tp_asv_to_vardict (const GHashTable *asv) { - GValue v = G_VALUE_INIT; - GVariant *ret; - - g_value_init (&v, TP_HASH_TYPE_STRING_VARIANT_MAP); - g_value_set_boxed (&v, asv); - - ret = dbus_g_value_build_g_variant (&v); - g_assert (!tp_strdiff (g_variant_get_type_string (ret), "a{sv}")); - - g_value_unset (&v); - - return g_variant_ref_sink (ret); + return _tp_boxed_to_variant (TP_HASH_TYPE_STRING_VARIANT_MAP, "a{sv}", (gpointer) asv); } GVariant * -- 1.7.7.6