comparison src/text/textui.c @ 876:2d4e6fca8e7c

2007-2-6 Brian Masney <masneyb@gftp.org> * src/text/textui.c src/gtk/gtkui_transfer.c src/uicommon/gftpui.h - added new function: gftpui_cancel_file_transfer() * src/uicommon/gftpui.c - use gftpui_cancel_file_transfer() to cancel the file transfers * lib/gftp.h lib/misc.c src/gtk/transfer.c - added pointer for the thread_id of the transfer to the gftp_transfer structure. This will be used in the GTK+ port so that the transfer can be stopped.
author masneyb
date Wed, 07 Feb 2007 02:43:57 +0000
parents 77660334b282
children 1808cebed602
comparison
equal deleted inserted replaced
875:19dacfb69433 876:2d4e6fca8e7c
99 { 99 {
100 } 100 }
101 101
102 102
103 void 103 void
104 gftpui_cancel_file_transfer (gftp_transfer * tdata)
105 {
106 tdata->cancel = 1;
107 tdata->fromreq->cancel = 1;
108 tdata->toreq->cancel = 1;
109 }
110
111
112 void
104 gftpui_ask_transfer (gftp_transfer * tdata) 113 gftpui_ask_transfer (gftp_transfer * tdata)
105 { 114 {
106 char buf, question[1024], srcsize[50], destsize[50], *pos, defaction; 115 char buf, question[1024], srcsize[50], destsize[50], *pos, defaction;
107 int action, newaction; 116 int action, newaction;
108 gftp_file * tempfle; 117 gftp_file * tempfle;