[empathy: 20/148] Emit the transfer_started signal as soon as we start an incoming transfer.



commit 0b8cc28c3452e43672905553aaf006c178587605
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date:   Wed Feb 18 11:49:02 2009 +0100

    Emit the transfer_started signal as soon as we start an incoming transfer.
---
 libempathy/empathy-ft-handler.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index 1e17cb0..d1909c1 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -898,6 +898,11 @@ empathy_ft_handler_start_transfer (EmpathyFTHandler *handler,
     }
   else
     {
+      /* emit the start signal now, so that we can catch errors in the
+       * op callback.
+       */
+      g_signal_emit (handler, signals[TRANSFER_STARTED], 0, priv->tpfile);
+
       /* TODO: add support for resume. */
       empathy_tp_file_accept (priv->tpfile, 0, priv->gfile, priv->cancellable,
           ft_transfer_progress_callback, handler,



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