From 0b8cc28c3452e43672905553aaf006c178587605 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 18 Feb 2009 11:49:02 +0100 Subject: Emit the transfer_started signal as soon as we start an incoming transfer. --- libempathy/empathy-ft-handler.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libempathy/empathy-ft-handler.c') diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c index 1e17cb00b..d1909c15c 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, -- cgit v1.2.3