From 039a108f7cc13f6fd587cf505cd43552e1a2a392 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/empathy-call-handler.c') diff --git a/src/empathy-call-handler.c b/src/empathy-call-handler.c index f509e5213..cf9c1b03e 100644 --- a/src/empathy-call-handler.c +++ b/src/empathy-call-handler.c @@ -884,6 +884,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, @@ -919,21 +934,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