diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2008-11-22 00:14:46 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-22 00:14:46 +0800 |
commit | 2f494c430d672d07721a7a7244e499a5d3cdd2c4 (patch) | |
tree | 2d353c6885b2fbc2e06eb5ba7517ee8b87397866 | |
parent | 6ace7765dca23f5c44d320cf6cfa3bd17b3e3d85 (diff) | |
download | gsoc2013-empathy-2f494c430d672d07721a7a7244e499a5d3cdd2c4.tar gsoc2013-empathy-2f494c430d672d07721a7a7244e499a5d3cdd2c4.tar.gz gsoc2013-empathy-2f494c430d672d07721a7a7244e499a5d3cdd2c4.tar.bz2 gsoc2013-empathy-2f494c430d672d07721a7a7244e499a5d3cdd2c4.tar.lz gsoc2013-empathy-2f494c430d672d07721a7a7244e499a5d3cdd2c4.tar.xz gsoc2013-empathy-2f494c430d672d07721a7a7244e499a5d3cdd2c4.tar.zst gsoc2013-empathy-2f494c430d672d07721a7a7244e499a5d3cdd2c4.zip |
Allow transfers to be declined by closing the channel. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1752
-rw-r--r-- | libempathy-gtk/empathy-ft-manager.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-ft-manager.c b/libempathy-gtk/empathy-ft-manager.c index 1dfdc8f51..21796fa5f 100644 --- a/libempathy-gtk/empathy-ft-manager.c +++ b/libempathy-gtk/empathy-ft-manager.c @@ -1123,12 +1123,13 @@ ft_manager_receive_file_response_cb (GtkWidget *dialog, gint response, ReceiveResponseData *response_data) { + TpChannel *channel; + if (response == GTK_RESPONSE_ACCEPT) { ft_manager_create_save_dialog (response_data); } else { -/* empathy_file_cancel (response_data->ft, - EMPATHY_TP_FILE_TRANSFER_STATE_CHANGE_REASON_LOCAL_STOPPED);*/ - /* cancel file transfer */ + channel = empathy_file_get_channel (response_data->file); + tp_cli_channel_run_close (channel, -1, NULL, NULL); free_receive_response_data (response_data); } |