]> git.0d.be Git - empathy.git/commitdiff
empathy_account_settings_migrate_password_cb: use the vardict API
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 7 Jun 2012 09:55:39 +0000 (11:55 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 7 Jun 2012 10:04:23 +0000 (12:04 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=677545

libempathy/empathy-account-settings.c

index a14e5c10fb363a163f5bcdf4a7d991f14e0372ad..e32e085b71b450c4028b82314648b3ed7c5951f5 100644 (file)
@@ -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 (