summaryrefslogtreecommitdiff
path: root/ubuntu-online-accounts
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2013-09-13 17:01:19 -0400
committerXavier Claessens <xavier.claessens@collabora.co.uk>2013-09-16 10:39:32 -0400
commitd3646aa06b78b80ab9389ae03ac21554339b2746 (patch)
treeef122777b979902ad0e55224d7bcb79934acc4ed /ubuntu-online-accounts
parentd193c9e8695cc70e279c5fb9cecaebc55e606827 (diff)
Stop using deprecated libaccounts-glib functions
Diffstat (limited to 'ubuntu-online-accounts')
-rw-r--r--ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c
index 6f79f87cf..145aa83e2 100644
--- a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c
+++ b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c
@@ -55,18 +55,20 @@ empathy_accounts_plugin_build_widget (ApPlugin *plugin)
}
static void
-store_delete_cb (AgAccount *account,
- const GError *error,
+store_delete_cb (GObject *source,
+ GAsyncResult *res,
gpointer user_data)
{
+ AgAccount *account = (AgAccount *) source;
GSimpleAsyncResult *result = user_data;
+ GError *error = NULL;
- if (error != NULL)
+ if (!ag_account_store_finish (account, res, &error))
{
g_debug ("Failed to delete account with ID '%u': %s",
account->id, error->message);
- g_simple_async_result_set_from_error (result, error);
+ g_simple_async_result_take_error (result, error);
}
g_simple_async_result_complete (result);
@@ -87,7 +89,7 @@ empathy_accounts_plugin_delete_account (ApPlugin *plugin,
account = ap_plugin_get_account (plugin);
ag_account_delete (account);
- ag_account_store (account, store_delete_cb, result);
+ ag_account_store_async (account, NULL, store_delete_cb, result);
}
static void