]> git.0d.be Git - empathy.git/commitdiff
CallHandler: move on_call_accepted_cb() around
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Mon, 16 May 2011 15:42:17 +0000 (16:42 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 9 Jun 2011 09:20:08 +0000 (10:20 +0100)
src/empathy-call-handler.c

index f509e5213a0e17163c84cb54d1fa53d43aeaa44e..cf9c1b03ed66b04a9ee588ccbb7804b92cbdc122 100644 (file)
@@ -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)