Mercurial > gftp.yaz
diff src/gtk/gftp-gtk.h @ 297:6d088dfece0b
2003-10-26 Brian Masney <masneyb@gftp.org>
* src/gtk/gftp-gtk.h src/gtk/transfer.c - (create_transfer,
transfer_done) - added more checks whenever a transfer is created and
stopped to make sure we don't log into the same remote host twice. This
is mainly for DnD.
author | masneyb |
---|---|
date | Mon, 27 Oct 2003 01:22:45 +0000 |
parents | 4747f621b79b |
children | 3b9d5797050f |
line wrap: on
line diff
--- a/src/gtk/gftp-gtk.h Mon Oct 27 00:54:25 2003 +0000 +++ b/src/gtk/gftp-gtk.h Mon Oct 27 01:22:45 2003 +0000 @@ -30,6 +30,19 @@ #define IS_ONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection && GTK_CLIST ((wdata)->listbox)->selection->next == NULL) #define IS_NONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection == NULL) +#define GFTP_IS_SAME_HOST_START_TRANS(wdata,trequest) \ + ((wdata) != NULL && (wdata)->request != NULL && \ + (wdata)->request->datafd > 0 && !(wdata)->request->always_connected && \ + !(wdata)->request->stopable && \ + compare_request (trequest, (wdata)->request, 0)) + +#define GFTP_IS_SAME_HOST_STOP_TRANS(wdata,trequest) \ + ((wdata) != NULL && (wdata)->request != NULL && \ + (wdata)->request->datafd < 0 && !(wdata)->request->always_connected && \ + (wdata)->request->cached && !(wdata)->request->stopable && \ + trequest->datafd > 0 && !trequest->always_connected && \ + compare_request (trequest, (wdata)->request, 0)) + #if GTK_MAJOR_VERSION == 1 #define gtk_widget_set_size_request(widget, width, height) \ gtk_widget_set_usize (widget, width, height)