Mercurial > gftp.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
296:51725086634d | 297:6d088dfece0b |
---|---|
28 #include <pthread.h> | 28 #include <pthread.h> |
29 | 29 |
30 #define IS_ONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection && GTK_CLIST ((wdata)->listbox)->selection->next == NULL) | 30 #define IS_ONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection && GTK_CLIST ((wdata)->listbox)->selection->next == NULL) |
31 #define IS_NONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection == NULL) | 31 #define IS_NONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection == NULL) |
32 | 32 |
33 #define GFTP_IS_SAME_HOST_START_TRANS(wdata,trequest) \ | |
34 ((wdata) != NULL && (wdata)->request != NULL && \ | |
35 (wdata)->request->datafd > 0 && !(wdata)->request->always_connected && \ | |
36 !(wdata)->request->stopable && \ | |
37 compare_request (trequest, (wdata)->request, 0)) | |
38 | |
39 #define GFTP_IS_SAME_HOST_STOP_TRANS(wdata,trequest) \ | |
40 ((wdata) != NULL && (wdata)->request != NULL && \ | |
41 (wdata)->request->datafd < 0 && !(wdata)->request->always_connected && \ | |
42 (wdata)->request->cached && !(wdata)->request->stopable && \ | |
43 trequest->datafd > 0 && !trequest->always_connected && \ | |
44 compare_request (trequest, (wdata)->request, 0)) | |
45 | |
33 #if GTK_MAJOR_VERSION == 1 | 46 #if GTK_MAJOR_VERSION == 1 |
34 #define gtk_widget_set_size_request(widget, width, height) \ | 47 #define gtk_widget_set_size_request(widget, width, height) \ |
35 gtk_widget_set_usize (widget, width, height) | 48 gtk_widget_set_usize (widget, width, height) |
36 #endif | 49 #endif |
37 | 50 |