empathy r1752 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1752 - trunk/libempathy-gtk
- Date: Fri, 21 Nov 2008 16:14:46 +0000 (UTC)
Author: xclaesse
Date: Fri Nov 21 16:14:46 2008
New Revision: 1752
URL: http://svn.gnome.org/viewvc/empathy?rev=1752&view=rev
Log:
Allow transfers to be declined by closing the channel. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
Modified:
trunk/libempathy-gtk/empathy-ft-manager.c
Modified: trunk/libempathy-gtk/empathy-ft-manager.c
==============================================================================
--- trunk/libempathy-gtk/empathy-ft-manager.c (original)
+++ trunk/libempathy-gtk/empathy-ft-manager.c Fri Nov 21 16:14:46 2008
@@ -1123,12 +1123,13 @@
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]