aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-11-22 00:14:46 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:14:46 +0800
commit2f494c430d672d07721a7a7244e499a5d3cdd2c4 (patch)
tree2d353c6885b2fbc2e06eb5ba7517ee8b87397866
parent6ace7765dca23f5c44d320cf6cfa3bd17b3e3d85 (diff)
downloadgsoc2013-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.c7
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);
}