[Telepathy-commits] [telepathy-salut/master] file-transfer-channel: connect the cancel signal when we send the file offer and not when it has been accepted so we are notified if the remote user declined the file

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Nov 6 04:01:48 PST 2008


---
 src/salut-file-transfer-channel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/salut-file-transfer-channel.c b/src/salut-file-transfer-channel.c
index fa33d65..e4c5b3e 100644
--- a/src/salut-file-transfer-channel.c
+++ b/src/salut-file-transfer-channel.c
@@ -919,7 +919,6 @@ remote_accepted_cb (GibberFileTransfer *ft,
     }
 
   g_signal_connect (ft, "finished", G_CALLBACK (ft_finished_cb), self);
-  g_signal_connect (ft, "canceled", G_CALLBACK (ft_remote_canceled_cb), self);
 }
 
 static gboolean setup_local_socket (SalutFileTransferChannel *self);
@@ -943,6 +942,7 @@ send_file_offer (SalutFileTransferChannel *self)
   g_signal_connect (ft, "remote-accepted",
       G_CALLBACK (remote_accepted_cb), self);
   g_signal_connect (ft, "error", G_CALLBACK (error_cb), self);
+  g_signal_connect (ft, "canceled", G_CALLBACK (ft_remote_canceled_cb), self);
 
   self->priv->ft = ft;
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list