annotate src/gtk/gftp-gtk.h @ 912:1f9c6baa458c

2007-4-18 Brian Masney <masneyb@gftp.org> * src/gtk/gftp-gtk.c src/gtk/gtkui.c src/gtk/gftp-gtk.h - added new function gftp_gtk_init_request(). It will initialize a gftp_request structure inside the gftp_window_data structure. * src/gtk/gtkui.c (gftpui_disconnect) - completely free the gftp_request structure when the user disconnects from the site.
author masneyb
date Wed, 18 Apr 2007 23:38:55 +0000
parents afe56dd107ca
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1 /*****************************************************************************/
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2 /* gftp-gtk.h - include file for the gftp gtk+ 1.2 port */
255
2ad324cf4930 2003-8-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 233
diff changeset
3 /* Copyright (C) 1998-2003 Brian Masney <masneyb@gftp.org> */
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4 /* */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5 /* This program is free software; you can redistribute it and/or modify */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6 /* it under the terms of the GNU General Public License as published by */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7 /* the Free Software Foundation; either version 2 of the License, or */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
8 /* (at your option) any later version. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
9 /* */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
10 /* This program is distributed in the hope that it will be useful, */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
13 /* GNU General Public License for more details. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
14 /* */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
15 /* You should have received a copy of the GNU General Public License */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
16 /* along with this program; if not, write to the Free Software */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
17 /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
18 /*****************************************************************************/
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
19
33
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 19
diff changeset
20 /* $Id$ */
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 19
diff changeset
21
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
22 #ifndef __GFTP_GTK_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
23 #define __GFTP_GTK_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
24
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
25 #include "../../lib/gftp.h"
341
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
26 #include "../uicommon/gftpui.h"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
27 #include <gtk/gtk.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
28 #include <gdk/gdkkeysyms.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
29 #include <pthread.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
30
505
c89019945241 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 496
diff changeset
31 #define GFTP_MENU_ITEM_ASCII 1
c89019945241 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 496
diff changeset
32 #define GFTP_MENU_ITEM_BINARY 2
c89019945241 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 496
diff changeset
33 #define GFTP_MENU_ITEM_WIN1 3
c89019945241 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 496
diff changeset
34 #define GFTP_MENU_ITEM_WIN2 4
c89019945241 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 496
diff changeset
35
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
36 #define IS_ONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection && GTK_CLIST ((wdata)->listbox)->selection->next == NULL)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
37 #define IS_NONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection == NULL)
525
7262851e3ae8 2004-8-1 Brian Masney <masneyb@gftp.org>
masneyb
parents: 506
diff changeset
38 #define gftp_gtk_get_list_selection(wdata) (GTK_CLIST ((wdata)->listbox)->selection)
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
39
297
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
40 #define GFTP_IS_SAME_HOST_START_TRANS(wdata,trequest) \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
41 ((wdata) != NULL && (wdata)->request != NULL && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
42 (wdata)->request->datafd > 0 && !(wdata)->request->always_connected && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
43 !(wdata)->request->stopable && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
44 compare_request (trequest, (wdata)->request, 0))
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
45
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
46 #define GFTP_IS_SAME_HOST_STOP_TRANS(wdata,trequest) \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
47 ((wdata) != NULL && (wdata)->request != NULL && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
48 (wdata)->request->datafd < 0 && !(wdata)->request->always_connected && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
49 (wdata)->request->cached && !(wdata)->request->stopable && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
50 trequest->datafd > 0 && !trequest->always_connected && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
51 compare_request (trequest, (wdata)->request, 0))
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
52
45
311e29c40ed6 2002-10-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 42
diff changeset
53 #if GTK_MAJOR_VERSION == 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
54 #define gtk_widget_set_size_request(widget, width, height) \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
55 gtk_widget_set_usize (widget, width, height)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
56 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
57
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
58 /* These 2 defines are for creating menu items with stock icons in GTK+ 2.0.
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
59 If we are using version 1.2, it will disable the stock items since it's not
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
60 supported */
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
61
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
62 #if GTK_MAJOR_VERSION < 2
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
63 #define MS_(a) NULL
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
64 #define MN_(a) a
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
65 #else
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
66 #define MS_(a) "<StockItem>",a
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
67 #define MN_(a) a,NULL
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
68 #endif
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
69
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
70 /* These are used for the MakeEditDialog function. I have these types to make
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
71 it easier for creating dialogs with GTK+ 1.2 and GTK+ 2.0 */
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
72
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
73 typedef enum gftp_dialog_button_tag
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
74 {
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
75 gftp_dialog_button_create,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
76 gftp_dialog_button_change,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
77 gftp_dialog_button_connect,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
78 gftp_dialog_button_rename,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
79 gftp_dialog_button_ok
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
80 } gftp_dialog_button;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
81
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
82 typedef struct gftp_window_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
83 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
84 GtkWidget *combo, /* Entry widget/history for the user to enter
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
85 a directory */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
86 *hoststxt, /* Show which directory we're in */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
87 *listbox; /* Our listbox showing the files */
37
5a178bd04ca5 2002-10-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 33
diff changeset
88 unsigned int sorted : 1, /* Is the output sorted? */
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
89 show_selected : 1, /* Show only selected files */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
90 *histlen; /* Pointer to length of history */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
91 char *filespec; /* Filespec for the listbox */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
92 gftp_request * request; /* The host that we are connected to */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
93 GList * files, /* Files in the listbox */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
94 ** history; /* History of the directories */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
95 GtkItemFactory *ifactory; /* This is for the menus that will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
96 come up when you right click */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
97 pthread_t tid; /* Thread for the stop button */
129
fe0b21c006f6 2003-4-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 63
diff changeset
98 char *prefix_col_str;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
99 } gftp_window_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
100
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
101
355
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
102 typedef struct _gftpui_gtk_thread_data
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
103 {
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
104 void * (*func) (void *);
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
105 gftpui_callback_data * cdata;
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
106 } gftpui_gtk_thread_data;
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
107
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
108
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
109 typedef struct gftp_graphic_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
110 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
111 char * filename;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
112 GdkPixmap * pixmap;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
113 GdkBitmap * bitmap;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
114 } gftp_graphic;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
115
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
116
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
117 typedef struct gftp_dialog_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
118 {
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
119 GtkWidget * dialog,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
120 * checkbox,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
121 * edit;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
122
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
123 void (*yesfunc) ();
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
124 gpointer yespointer;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
125
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
126 void (*nofunc) ();
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
127 gpointer nopointer;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
128 } gftp_dialog_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
129
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
130
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
131 typedef struct gftp_viewedit_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
132 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
133 char *filename, /* File we are viewing/editing currently */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
134 *remote_filename; /* The filename on the remote computer */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
135 struct stat st; /* Vital file statistics */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
136 pid_t pid; /* Our process id */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
137 char **argv; /* Our arguments we passed to execvp. We will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
138 free it when the process terminates. This
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
139 is the safest place to free this */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
140 unsigned int view : 1, /* View or edit this file */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
141 rm : 1, /* Delete this file after we're done with it */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
142 dontupload : 1; /* Don't upload this file after we're done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
143 editing it */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
144 gftp_window_data * fromwdata, /* The window we are viewing this file in */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
145 * towdata;
294
4747f621b79b 2003-10-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 255
diff changeset
146 gftp_request * torequest;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
147 } gftp_viewedit_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
148
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
149
14
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
150 typedef struct gftp_save_dir_struct_tag
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
151 {
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
152 GtkWidget * filew;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
153 gftp_window_data * wdata;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
154 } gftp_save_dir_struct;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
155
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
156
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
157 typedef struct gftp_textcomboedt_widget_data_tag
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
158 {
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
159 GtkWidget * combo,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
160 * text;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
161 gftp_config_vars * cv;
139
c363b08e0118 2003-4-21 Brian Masney <masneyb@gftp.org>
masneyb
parents: 136
diff changeset
162 char * custom_edit_value;
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
163 } gftp_textcomboedt_widget_data;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
164
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
165
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
166 typedef struct gftp_options_dialog_data_tag
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
167 {
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
168 GtkWidget * dialog,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
169 * notebook,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
170 * box,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
171 * table;
767
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
172 unsigned int tbl_col_num,
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
173 tbl_row_num;
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
174 gftp_option_type_enum last_option;
229
35ae2e80962e 2003-7-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 227
diff changeset
175 gftp_bookmarks_var * bm;
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
176 } gftp_options_dialog_data;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
177
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
178
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
179 extern gftp_window_data window1, window2, * other_wdata, * current_wdata;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
180 extern GtkWidget * stop_btn, * hostedit, * useredit, * passedit,
789
afe56dd107ca 2006-7-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 788
diff changeset
181 * portedit, * logwdw, * dlwdw, * optionmenu,
587
7937ade77c22 2004-10-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 525
diff changeset
182 * gftpui_command_widget, * download_left_arrow,
604
5df5eac28f47 2004-11-1 Brian Masney <masneyb@gftp.org>
masneyb
parents: 587
diff changeset
183 * upload_right_arrow, * openurl_btn;
5df5eac28f47 2004-11-1 Brian Masney <masneyb@gftp.org>
masneyb
parents: 587
diff changeset
184 extern GtkTooltips * openurl_tooltip;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
185 extern GtkAdjustment * logwdw_vadj;
45
311e29c40ed6 2002-10-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 42
diff changeset
186 #if GTK_MAJOR_VERSION > 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
187 extern GtkTextMark * logwdw_textmark;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
188 #endif
788
0e7ab0a51ddd 2006-7-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 767
diff changeset
189 extern int local_start, remote_start, trans_start;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
190 extern GHashTable * graphic_hash_table;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
191 extern GtkItemFactoryEntry * menus;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
192 extern GtkItemFactory * factory;
367
d5409bf03ff1 2003-1-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 355
diff changeset
193 extern pthread_mutex_t log_mutex;
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
194 extern gftp_graphic * gftp_icon;
56
a12bcbc2fce4 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 45
diff changeset
195 extern pthread_t main_thread_id;
129
fe0b21c006f6 2003-4-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 63
diff changeset
196 extern GList * viewedit_processes;
fe0b21c006f6 2003-4-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 63
diff changeset
197
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
198
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
199 /* bookmarks.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
200 void run_bookmark ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
201
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
202 void add_bookmark ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
203
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
204 void edit_bookmarks ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
205
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
206 void build_bookmarks_menu ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
207
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
208 /* chmod_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
209 void chmod_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
210
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
211 /* delete_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
212 void delete_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
213
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
214 /* dnd.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
215 void openurl_get_drag_data ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
216 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
217 gint x,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
218 gint y,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
219 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
220 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
221 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
222 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
223
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
224 void listbox_drag ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
225 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
226 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
227 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
228 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
229 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
230
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
231 void listbox_get_drag_data ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
232 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
233 gint x,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
234 gint y,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
235 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
236 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
237 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
238 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
239
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
240 /* gftp-gtk.c */
912
1f9c6baa458c 2007-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 789
diff changeset
241 void gftp_gtk_init_request ( gftp_window_data * wdata );
1f9c6baa458c 2007-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 789
diff changeset
242
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
243 void toolbar_hostedit ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
244 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
245
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
246 void sortrows ( GtkCList * clist,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
247 gint column,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
248 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
249
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
250 void stop_button ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
251 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
252
341
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
253 void gftpui_show_or_hide_command ( void );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
254
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
255 /* gtkui.c */
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
256 void gftpui_run_command ( GtkWidget * widget,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
257 gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
258
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
259 void gftpui_run_function_callback ( gftp_window_data * wdata,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
260 gftp_dialog_data * ddata );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
261
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
262 void gftpui_run_function_cancel_callback ( gftp_window_data * wdata,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
263 gftp_dialog_data * ddata );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
264
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
265 void gftpui_mkdir_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
266
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
267 void gftpui_rename_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
268
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
269 void gftpui_site_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
270
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
271 int gftpui_run_chdir ( gpointer uidata,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
272 char *directory );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
273
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
274 void gftpui_chdir_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
275
397
14ef37b62c20 2004-2-8 Brian Masney <masneyb@gftp.org>
masneyb
parents: 380
diff changeset
276 char * gftpui_gtk_get_utf8_file_pos ( gftp_file * fle );
14ef37b62c20 2004-2-8 Brian Masney <masneyb@gftp.org>
masneyb
parents: 380
diff changeset
277
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
278 /* menu_items.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
279 void change_filespec ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
280
14
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
281 void save_directory_listing ( gpointer data );
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
282
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
283 void show_selected ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
284
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
285 void selectall ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
286
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
287 void selectallfiles ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
288
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
289 void deselectall ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
290
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
291 int chdir_edit ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
292 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
293
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
294 void clearlog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
295
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
296 void viewlog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
297
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
298 void savelog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
299
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
300 void clear_cache ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
301
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
302 void compare_windows ( gpointer data );
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
303
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
304 void about_dialog ( gpointer data );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
305
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
306 /* misc-gtk.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
307 void fix_display ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
308
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
309 void remove_files_window ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
310
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
311 void ftp_log ( gftp_logging_level level,
186
13ca1defdc75 2003-6-16 Brian Masney <masneyb@gftp.org>
masneyb
parents: 139
diff changeset
312 gftp_request * request,
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
313 const char *string,
338
0f34108f27b7 2003-12-10 Brian Masney <masneyb@gftp.org>
masneyb
parents: 303
diff changeset
314 ... ) GFTP_LOG_FUNCTION_ATTRIBUTES;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
315
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
316 void update_window_info ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
317
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
318 void update_window ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
319
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
320 GtkWidget * toolbar_pixmap ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
321 char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
322
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
323 gftp_graphic * open_xpm ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
324 char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
325
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
326 void gftp_free_pixmap ( char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
327
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
328 void gftp_get_pixmap ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
329 char *filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
330 GdkPixmap ** pix,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
331 GdkBitmap ** bitmap );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
332
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
333 int check_status ( char *name,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
334 gftp_window_data * wdata,
767
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
335 unsigned int check_other_stop,
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
336 unsigned int only_one,
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
337 unsigned int at_least_one,
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
338 unsigned int func );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
339
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
340 GtkItemFactory *item_factory_new ( GtkType container_type,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
341 const char *path,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
342 GtkAccelGroup *accel_group,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
343 const char *strip_prefix );
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
344
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
345 void create_item_factory ( GtkItemFactory * ifactory,
767
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
346 gint n_entries,
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
347 GtkItemFactoryEntry * entries,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
348 gpointer callback_data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
349
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
350 void add_history ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
351 GList ** history,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
352 unsigned int *histlen,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
353 const char *str );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
354
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
355 int check_reconnect ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
356
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
357 void add_file_listbox ( gftp_window_data * wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
358 gftp_file * fle );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
359
425
8fc4efa3f72d 2004-3-16 Brian Masney <masneyb@gftp.org>
masneyb
parents: 397
diff changeset
360 void destroy_dialog ( gftp_dialog_data * ddata );
8fc4efa3f72d 2004-3-16 Brian Masney <masneyb@gftp.org>
masneyb
parents: 397
diff changeset
361
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
362 void MakeEditDialog ( char *diagtxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
363 char *infotxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
364 char *deftext,
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
365 int passwd_item,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
366 char *checktext,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
367 gftp_dialog_button okbutton,
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
368 void (*okfunc) (),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
369 void *okptr,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
370 void (*cancelfunc) (),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
371 void *cancelptr );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
372
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
373 void MakeYesNoDialog ( char *diagtxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
374 char *infotxt,
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
375 void (*yesfunc) (),
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
376 gpointer yespointer,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
377 void (*nofunc) (),
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
378 gpointer nopointer );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
379
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
380 void update_directory_download_progress ( gftp_transfer * transfer );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
381
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
382 int progress_timeout ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
383
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
384 void display_cached_logs ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
385
201
0098dae654a5 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 186
diff changeset
386 char * get_xpm_path ( char *filename,
0098dae654a5 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 186
diff changeset
387 int quit_on_err );
0098dae654a5 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 186
diff changeset
388
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
389 /* options_dialog.c */
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
390 void options_dialog ( gpointer data );
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
391
229
35ae2e80962e 2003-7-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 227
diff changeset
392 void gftp_gtk_setup_bookmark_options ( GtkWidget * notebook,
35ae2e80962e 2003-7-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 227
diff changeset
393 gftp_bookmarks_var * bm );
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
394
767
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
395 void gftp_gtk_save_bookmark_options ( void );
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
396
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
397 /* transfer.c */
496
937f2b75bbee 2004-7-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 470
diff changeset
398 int ftp_list_files ( gftp_window_data * wdata );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
399
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
400 int ftp_connect ( gftp_window_data * wdata,
767
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
401 gftp_request * request );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
402
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
403 gint update_downloads ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
404
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
405 void get_files ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
406
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
407 void put_files ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
408
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
409 void transfer_window_files ( gftp_window_data * fromwdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
410 gftp_window_data * towdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
411
767
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
412 int gftp_gtk_get_subdirs ( gftp_transfer * transfer );
506
5944bd059ae0 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 505
diff changeset
413
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
414 void *do_getdir_thread ( void * data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
415
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
416 void start_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
417
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
418 void stop_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
419
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
420 void skip_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
421
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
422 void remove_file_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
423
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
424 void move_transfer_up ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
425
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
426 void move_transfer_down ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
427
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
428 /* view_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
429 void edit_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
430
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
431 void view_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
432
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
433 void view_file ( char *filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
434 int fd,
767
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
435 unsigned int viewedit,
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
436 unsigned int del_file,
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
437 unsigned int start_pos,
49cfbe02926b 2006-7-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 604
diff changeset
438 unsigned int dontupload,
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
439 char *remote_filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
440 gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
441
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
442 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
443