[empathy: 79/99] CallHandler: move on_call_accepted_cb() around



commit 039a108f7cc13f6fd587cf505cd43552e1a2a392
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Mon May 16 16:42:17 2011 +0100

    CallHandler: move on_call_accepted_cb() around

 src/empathy-call-handler.c |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/empathy-call-handler.c b/src/empathy-call-handler.c
index f509e52..cf9c1b0 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]