aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-account-settings.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-07 17:55:39 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-07 18:04:23 +0800
commit9910d4e79c06173c87c44c2a58ababa4e8334412 (patch)
tree79f49b903dd61640565d154a83eb11e7c3c67c1f /libempathy/empathy-account-settings.c
parent4da4893bd535d6e122f99300e2f5152d40723bbc (diff)
downloadgsoc2013-empathy-9910d4e79c06173c87c44c2a58ababa4e8334412.tar
gsoc2013-empathy-9910d4e79c06173c87c44c2a58ababa4e8334412.tar.gz
gsoc2013-empathy-9910d4e79c06173c87c44c2a58ababa4e8334412.tar.bz2
gsoc2013-empathy-9910d4e79c06173c87c44c2a58ababa4e8334412.tar.lz
gsoc2013-empathy-9910d4e79c06173c87c44c2a58ababa4e8334412.tar.xz
gsoc2013-empathy-9910d4e79c06173c87c44c2a58ababa4e8334412.tar.zst
gsoc2013-empathy-9910d4e79c06173c87c44c2a58ababa4e8334412.zip
empathy_account_settings_migrate_password_cb: use the vardict API
https://bugzilla.gnome.org/show_bug.cgi?id=677545
Diffstat (limited to 'libempathy/empathy-account-settings.c')
-rw-r--r--libempathy/empathy-account-settings.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index a14e5c10f..e32e085b7 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 (