[empathy] empathy_account_settings_migrate_password_cb: use the vardict API
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy_account_settings_migrate_password_cb: use the vardict API
- Date: Thu, 7 Jun 2012 10:51:46 +0000 (UTC)
commit 9910d4e79c06173c87c44c2a58ababa4e8334412
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Jun 7 11:55:39 2012 +0200
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 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index a14e5c1..e32e085 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 (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]