diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-01-28 15:03:50 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-01-28 15:03:50 +0000 |
commit | 8eff2e3461218e5b60ecabf08678f7d4de3ea024 (patch) | |
tree | f26446a4bc4346db68934a2c3f5916c487ce28c4 | |
parent | 31f42af0aa1cfa13f3957556399e1835dd834c78 (diff) |
Ignore GTask being GLib 2.36 API so this can compile in Empathy 3.838-mc-517
-rw-r--r-- | goa-mc-plugin/mcp-account-manager-goa.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/goa-mc-plugin/mcp-account-manager-goa.c b/goa-mc-plugin/mcp-account-manager-goa.c index 6840def8..a65998e6 100644 --- a/goa-mc-plugin/mcp-account-manager-goa.c +++ b/goa-mc-plugin/mcp-account-manager-goa.c @@ -787,16 +787,22 @@ mcp_account_manager_goa_delete_async (McpAccountStorage *self, GAsyncReadyCallback callback, gpointer user_data) { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS GTask *task = g_task_new (self, cancellable, callback, user_data); + G_GNUC_END_IGNORE_DEPRECATIONS if (mcp_account_manager_goa_delete (self, am, account_name, NULL)) { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS g_task_return_boolean (task, TRUE); + G_GNUC_END_IGNORE_DEPRECATIONS } else { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS g_task_return_new_error (task, TP_ERROR, TP_ERROR_DOES_NOT_EXIST, "Account does not exist in GOA"); + G_GNUC_END_IGNORE_DEPRECATIONS } g_object_unref (task); @@ -807,7 +813,9 @@ mcp_account_manager_goa_delete_finish (McpAccountStorage *self, GAsyncResult *res, GError **error) { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS return g_task_propagate_boolean (G_TASK (res), error); + G_GNUC_END_IGNORE_DEPRECATIONS } #endif |