[next] telepathy-glib: account: use _tp_asv_from_vardict()
Xavier Claessens
xclaesse at kemper.freedesktop.org
Wed May 9 13:10:50 PDT 2012
Module: telepathy-glib
Branch: next
Commit: 9be7554a63ff6a4f1039cc84d80547561d0225d5
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=9be7554a63ff6a4f1039cc84d80547561d0225d5
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Thu Apr 19 11:50:46 2012 +0200
account: use _tp_asv_from_vardict()
---
telepathy-glib/account.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/telepathy-glib/account.c b/telepathy-glib/account.c
index 86f790d..9190c7b 100644
--- a/telepathy-glib/account.c
+++ b/telepathy-glib/account.c
@@ -2796,20 +2796,16 @@ tp_account_update_parameters_vardict_async (TpAccount *account,
GAsyncReadyCallback callback,
gpointer user_data)
{
- GValue v = G_VALUE_INIT;
+ GHashTable *hash;
- g_return_if_fail (parameters != NULL);
- g_return_if_fail (g_variant_is_of_type (parameters, G_VARIANT_TYPE_VARDICT));
+ hash = _tp_asv_from_vardict (parameters);
g_variant_ref_sink (parameters);
- dbus_g_value_parse_g_variant (parameters, &v);
- g_assert (G_VALUE_HOLDS (&v, TP_HASH_TYPE_STRING_VARIANT_MAP));
-
- tp_account_update_parameters_async (account, g_value_get_boxed (&v),
+ tp_account_update_parameters_async (account, hash,
unset_parameters, callback, user_data);
- g_value_unset (&v);
g_variant_unref (parameters);
+ g_hash_table_unref (hash);
}
/**
More information about the telepathy-commits
mailing list