summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-09-23 14:40:24 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-09-23 15:23:54 +0100
commit871eb58541a95c2f9c015350b4f63aca64c4b785 (patch)
tree52075af08a29a3610dd05ad8ddf93f8d902f6add
parenteda38779c2c3107256a8ef5c5fc32d04e664363f (diff)
mc-tool remove: use tp_account_remove_async
-rw-r--r--util/mc-tool.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/util/mc-tool.c b/util/mc-tool.c
index 2463a20b..005d6d42 100644
--- a/util/mc-tool.c
+++ b/util/mc-tool.c
@@ -582,22 +582,6 @@ callback_for_update_parameters (GObject *source,
}
static void
-callback_for_void (TpAccount *proxy,
- const GError *error,
- gpointer user_data,
- GObject *weak_object)
-{
- if (error == NULL) {
- command.common.ret = 0;
- }
- else {
- fprintf (stderr, "%s %s: %s\n", app_name, command.common.name,
- error->message);
- }
- g_main_loop_quit (main_loop);
-}
-
-static void
callback_for_async (GObject *account,
GAsyncResult *res,
gpointer user_data)
@@ -622,10 +606,8 @@ callback_for_async (GObject *account,
static gboolean
command_remove (TpAccount *account)
{
- return NULL !=
- tp_cli_account_call_remove (account, 25000,
- callback_for_void,
- NULL, NULL, NULL);
+ tp_account_remove_async (account, callback_for_async, tp_account_remove_finish);
+ return TRUE;
}
static gboolean