diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-05-17 18:43:39 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-05-30 18:15:49 +0800 |
commit | de0dd5093afcb898eaad92d0f15f6a342deda980 (patch) | |
tree | be28db1d4a0f11778a800ad886f0a0c5a52e9d93 | |
parent | 920122ee2e7be94a844d8f6736df2aab9f688a1d (diff) | |
download | gsoc2013-empathy-de0dd5093afcb898eaad92d0f15f6a342deda980.tar gsoc2013-empathy-de0dd5093afcb898eaad92d0f15f6a342deda980.tar.gz gsoc2013-empathy-de0dd5093afcb898eaad92d0f15f6a342deda980.tar.bz2 gsoc2013-empathy-de0dd5093afcb898eaad92d0f15f6a342deda980.tar.lz gsoc2013-empathy-de0dd5093afcb898eaad92d0f15f6a342deda980.tar.xz gsoc2013-empathy-de0dd5093afcb898eaad92d0f15f6a342deda980.tar.zst gsoc2013-empathy-de0dd5093afcb898eaad92d0f15f6a342deda980.zip |
use tp_channel_dispatch_operation_claim_async() (#650386)
-rw-r--r-- | libempathy/empathy-auth-factory.c | 6 | ||||
-rw-r--r-- | src/empathy-call-observer.c | 5 | ||||
-rw-r--r-- | src/empathy-event-manager.c | 16 |
3 files changed, 16 insertions, 11 deletions
diff --git a/libempathy/empathy-auth-factory.c b/libempathy/empathy-auth-factory.c index 36f7fda55..56b3b73eb 100644 --- a/libempathy/empathy-auth-factory.c +++ b/libempathy/empathy-auth-factory.c @@ -344,7 +344,7 @@ claim_cb (GObject *source, ObserveChannelsData *data = user_data; GError *error = NULL; - if (!tp_channel_dispatch_operation_claim_finish ( + if (!tp_channel_dispatch_operation_claim_with_finish ( TP_CHANNEL_DISPATCH_OPERATION (source), result, &error)) { DEBUG ("Failed to call Claim: %s", error->message); @@ -388,8 +388,8 @@ get_password_cb (GObject *source, DEBUG ("We have a password for account %s, calling Claim", tp_proxy_get_object_path (source)); - tp_channel_dispatch_operation_claim_async (data->dispatch_operation, - claim_cb, data); + tp_channel_dispatch_operation_claim_with_async (data->dispatch_operation, + TP_BASE_CLIENT (data->self), claim_cb, data); tp_observe_channels_context_accept (data->context); } diff --git a/src/empathy-call-observer.c b/src/empathy-call-observer.c index ee8adc406..308cec22d 100644 --- a/src/empathy-call-observer.c +++ b/src/empathy-call-observer.c @@ -181,7 +181,7 @@ on_cdo_claim_cb (GObject *source_object, cdo = TP_CHANNEL_DISPATCH_OPERATION (source_object); - tp_channel_dispatch_operation_claim_finish (cdo, result, &error); + tp_channel_dispatch_operation_claim_with_finish (cdo, result, &error); if (error != NULL) { DEBUG ("Could not claim CDO: %s", error->message); @@ -227,7 +227,8 @@ cdo_prepare_cb (GObject *source_object, return; } - tp_channel_dispatch_operation_claim_async (cdo, on_cdo_claim_cb, ctx); + tp_channel_dispatch_operation_claim_with_async (cdo, + ctx->self->priv->observer, on_cdo_claim_cb, ctx); tp_observe_channels_context_accept (ctx->context); } diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index c6f5860ab..0dcc2be8a 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -394,7 +394,7 @@ reject_channel_claim_cb (GObject *source, TpChannelDispatchOperation *cdo = TP_CHANNEL_DISPATCH_OPERATION (source); GError *error = NULL; - if (!tp_channel_dispatch_operation_claim_finish (cdo, result, &error)) + if (!tp_channel_dispatch_operation_claim_with_finish (cdo, result, &error)) { DEBUG ("Failed to claim channel: %s", error->message); @@ -427,7 +427,7 @@ reject_auth_channel_claim_cb (GObject *source, TpChannelDispatchOperation *cdo = TP_CHANNEL_DISPATCH_OPERATION (source); GError *error = NULL; - if (!tp_channel_dispatch_operation_claim_finish (cdo, result, &error)) + if (!tp_channel_dispatch_operation_claim_with_finish (cdo, result, &error)) { DEBUG ("Failed to claim channel: %s", error->message); @@ -442,6 +442,8 @@ reject_auth_channel_claim_cb (GObject *source, static void reject_approval (EventManagerApproval *approval) { + EmpathyEventManagerPriv *priv = GET_PRIV (approval->manager); + /* We have to claim the channel before closing it */ /* Unfortunately, we need to special case the auth channels for the @@ -451,14 +453,16 @@ reject_approval (EventManagerApproval *approval) * directly. */ if (approval->handler_instance != NULL) { - tp_channel_dispatch_operation_claim_async (approval->operation, - reject_channel_claim_cb, g_object_ref (approval->handler_instance)); + tp_channel_dispatch_operation_claim_with_async (approval->operation, + priv->approver, reject_channel_claim_cb, + g_object_ref (approval->handler_instance)); } else if (tp_channel_get_channel_type_id (approval->main_channel) == TP_IFACE_QUARK_CHANNEL_TYPE_SERVER_AUTHENTICATION) { - tp_channel_dispatch_operation_claim_async (approval->operation, - reject_auth_channel_claim_cb, approval->main_channel); + tp_channel_dispatch_operation_claim_with_async (approval->operation, + priv->auth_approver, reject_auth_channel_claim_cb, + approval->main_channel); } } |