Mercurial > gftp.yaz
annotate src/uicommon/gftpuicallbacks.c @ 341:eedc2c5727fa
2003-12-28 Brian Masney <masneyb@gftp.org>
**** NOTE: this commit breaks a lot of functionality in gftp. I ****
**** still have more work to do on this. Please don't email me ****
**** saying that the CVS code is broken. ****
* lib/bookmark.c lib/gftp.h lib/local.c lib/options.h lib/rfc2068.c
lib/rfc959.c lib/sshv2.c - moved the use_threads option from the
request structure over to the protocol declaration in options.h.
* lib/options.h src/gtk/gftp-gtk.c - added cmd_in_gui option. When this
option is enabled, a new toolbar will be shown in the GTK+ port that
will allow you to control the GUI by entering manual commands.
* src/Makefile.am - added uicommon directory
* src/gtk/Makefile.am src/text/Makefile.am - link in the uicommon
library.
* src/uicommon/* src/text/gftp-text.c - moved most of the functionality
of the text port over to the uicommon directory. Made this code a little more generic so that the GTK+ port can have a text interface
associated with it.
* src/gtk/gtkui.c src/gtk/gftp-gtk.c src/gtk/mkdir_dialog.c
src/gtk/rename_dialog.c src/gtk/menu-items.c src/gtk/misc-gtk.c -
started to clean up the callback functions and make them more tightly
integrated with the uicommon code.
* src/gtk/bookmarks.c src/gtk/chmod_dialog.c src/gtk/delete_dialog.c
src/gtk/gftp-gtk.c src/gtk/menu-items.c src/gtk/misc-gtk.c
src/gtk/transfer.c -
s/refresh/gftpui_refresh/g
s/jmp_environment/gftpui_common_jmp_environment/g
s/request->use_threads/gftpui_common_use_threads (request)/g
* src/gtk/options_dialog.c (apply_changes) - whenever the options are
saved, check to see if the command entry needs to be shown or hidden.
author | masneyb |
---|---|
date | Sun, 28 Dec 2003 16:02:07 +0000 |
parents | |
children | e5ad008e7ea8 |
rev | line source |
---|---|
341 | 1 /*****************************************************************************/ |
2 /* gftpui.c - UI related functions for gFTP. All of these functions must be */ | |
3 /* reentrant. */ | |
4 /* Copyright (C) 1998-2003 Brian Masney <masneyb@gftp.org> */ | |
5 /* */ | |
6 /* This program is free software; you can redistribute it and/or modify */ | |
7 /* it under the terms of the GNU General Public License as published by */ | |
8 /* the Free Software Foundation; either version 2 of the License, or */ | |
9 /* (at your option) any later version. */ | |
10 /* */ | |
11 /* This program is distributed in the hope that it will be useful, */ | |
12 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ | |
13 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ | |
14 /* GNU General Public License for more details. */ | |
15 /* */ | |
16 /* You should have received a copy of the GNU General Public License */ | |
17 /* along with this program; if not, write to the Free Software */ | |
18 /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA */ | |
19 /*****************************************************************************/ | |
20 | |
21 #include "gftpui.h" | |
22 static const char cvsid[] = "$Id$"; | |
23 | |
24 int | |
25 gftpui_common_run_mkdir (gftpui_callback_data * cdata) | |
26 { | |
27 int ret; | |
28 | |
29 ret = gftp_make_directory (cdata->request, cdata->input_string) == 0; | |
30 | |
31 return (ret); | |
32 } | |
33 | |
34 | |
35 int | |
36 gftpui_common_run_rename (gftpui_callback_data * cdata) | |
37 { | |
38 int ret; | |
39 | |
40 ret = gftp_rename_file (cdata->request, cdata->source_string, | |
41 cdata->input_string) == 0; | |
42 | |
43 return (ret); | |
44 } | |
45 | |
46 | |
47 int | |
48 gftpui_common_run_site (gftpui_callback_data * cdata) | |
49 { | |
50 int ret; | |
51 | |
52 ret = gftp_site_cmd (cdata->request, cdata->input_string) == 0; | |
53 | |
54 return (ret); | |
55 } | |
56 | |
57 | |
58 int | |
59 gftpui_common_run_chdir (gftpui_callback_data * cdata) | |
60 { | |
61 int ret; | |
62 | |
63 ret = gftp_set_directory (cdata->request, cdata->input_string) == 0; | |
64 | |
65 return (ret); | |
66 } | |
67 |