From 9910d4e79c06173c87c44c2a58ababa4e8334412 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 7 Jun 2012 11:55:39 +0200 Subject: [PATCH] empathy_account_settings_migrate_password_cb: use the vardict API https://bugzilla.gnome.org/show_bug.cgi?id=677545 --- libempathy/empathy-account-settings.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c index a14e5c10..e32e085b 100644 --- a/libempathy/empathy-account-settings.c +++ b/libempathy/empathy-account-settings.c @@ -472,7 +472,7 @@ empathy_account_settings_migrate_password_cb (GObject *source, GError *error = NULL; EmpathyAccountSettings *self = user_data; EmpathyAccountSettingsPriv *priv = GET_PRIV (self); - GHashTable *empty; + GVariantBuilder *builder; const gchar *unset[] = { "password", NULL }; if (!empathy_keyring_set_account_password_finish (account, result, &error)) @@ -483,13 +483,12 @@ empathy_account_settings_migrate_password_cb (GObject *source, } /* Now clear the password MC has stored. */ - empty = tp_asv_new (NULL, NULL); - tp_account_update_parameters_async (priv->account, - empty, unset, NULL, NULL); + builder = g_variant_builder_new (G_VARIANT_TYPE_VARDICT); - g_hash_table_remove (priv->parameters, "password"); + tp_account_update_parameters_vardict_async (priv->account, + g_variant_builder_end (builder), unset, NULL, NULL); - g_hash_table_unref (empty); + g_hash_table_remove (priv->parameters, "password"); } static GVariant * empathy_account_settings_dup ( -- 2.39.2