From aebcfd442a1976d2f249445f4d56e791723552c4 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 16 May 2011 16:42:17 +0100 Subject: CallHandler: move on_call_accepted_cb() around --- src/empathy-call-handler.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/empathy-call-handler.c b/src/empathy-call-handler.c index 32164415f..be46bd7ff 100644 --- a/src/empathy-call-handler.c +++ b/src/empathy-call-handler.c @@ -889,6 +889,21 @@ empathy_call_handler_start_tpfs (EmpathyCallHandler *self) on_tf_channel_ready, self); } +static void +on_call_accepted_cb (GObject *source_object, + GAsyncResult *res, + gpointer user_data) +{ + TpyCallChannel *call = TPY_CALL_CHANNEL (source_object); + GError *error = NULL; + + if (!tpy_call_channel_accept_finish (call, res, &error)) + { + g_warning ("could not accept Call: %s", error->message); + g_error_free (error); + } +} + #if 0 static void empathy_call_handler_request_cb (GObject *source, @@ -924,21 +939,6 @@ empathy_call_handler_request_cb (GObject *source, } #endif -static void -on_call_accepted_cb (GObject *source_object, - GAsyncResult *res, - gpointer user_data) -{ - TpyCallChannel *call = TPY_CALL_CHANNEL (source_object); - GError *error = NULL; - - if (!tpy_call_channel_accept_finish (call, res, &error)) - { - g_warning ("could not accept Call: %s", error->message); - g_error_free (error); - } -} - void empathy_call_handler_start_call (EmpathyCallHandler *handler, gint64 timestamp) -- cgit v1.2.3