Commit Graph

307 Commits

Author SHA1 Message Date
Pavel Roskin
11fd4abc0e * main.c [HAVE_X]: Disable eight_bit_clean and full_eight_bits.
* util.c (is_printable) [HAVE_X]: Simplify.
2001-07-26 05:01:26 +00:00
Pavel Roskin
57fde54f99 * mad.h: Include stdio.h to prevent redefining mad_tempnam().
* main.c [HAVE_X && HAVE_MAD]: Don't call done_key().
2001-07-16 04:06:35 +00:00
Pavel Roskin
aa9ac05960 * cmd.c [HAVE_X]: Disable source routing dialog and panel
comparison.
* main.c (ctl_x_map): Simplify preprocessor directives.
2001-07-15 04:14:39 +00:00
Pavel Roskin
069eaca778 * screen.c (panel_keymap) [HAVE_X]: Disable Alt-H - it's not
implemented properly for GNOME.
* main.c (directory_history_list) [HAVE_X]: Disable.
2001-07-15 03:50:23 +00:00
Pavel Roskin
9f014513ab * main.c [HAVE_X]: Disable Ctrl-X sequences. 2001-07-14 22:13:46 +00:00
Pavel Roskin
6883eb1dd0 * main.c [HAVE_X]: Eliminate setup_post() and partly done_mc(). 2001-07-14 06:25:45 +00:00
Pavel Roskin
5fd1f032f3 * utilunix.c (uid_cache): Make static.
(gid_cache): Likewise.
(init_uid_gid_cache): Remove.
* main.c (setup_post): Don't call init_uid_gid_cache().
2001-07-14 06:13:29 +00:00
Pavel Roskin
9e7e7037f8 * main.c (default_map) [HAVE_X]: Disable Alt-T.
* cmd.c [HAVE_X]: Eliminate set_basic_panel_listing_to() and
toggle_listing_cmd().
2001-07-14 05:37:27 +00:00
Andrew V. Samoilov
2d7255d8cf * main.c: Eliminate iconify_on_exec.
[!HAVE_GNOME]: Eliminate nowindows, nodesktop, twopanel,
display_linksdir and cmdline_geometry.
(sigchld_handler_no_subshell): Comment fixes.
(midnight_callback): Likewise.
(print_mc_usage): Use fputs, not fprintf.
(print_color_usage): Likewise.
(argument_table): Assign 'r' with force_subshell_execution and 'U'
with use_subshell.
(process_args): Don't deal with 'r', 'U' and 'X' options.
(setup_mc) [HAVE_GNOME]: Eliminate more code.

setup.c (options):  Eliminate iconify_on_exec.
2001-07-11 22:58:32 +00:00
Pavel Roskin
91f2348983 * main.c (sigchld_handler_no_subshell): Don't restart cons.saver
if it died.
* subshell.c (sigchld_handler): Likewise.
2001-07-06 17:29:20 +00:00
Pavel Roskin
1cd140d5dc * main.c (midnight_callback): Don't handle any events except
Ctrl-x combinations on DLG_KEY event if the menu is active.
2001-07-05 23:27:01 +00:00
Pavel Roskin
6c17a59440 * main.c (load_prompt): Don't change prompt if midnight_dlg is
not the current dialog.
2001-07-05 22:35:16 +00:00
Pavel Roskin
5c56eb0c5a * cons.handler.c: Reorganize includes. Fix warnings on BSD.
* rxvt.c (rxvt_extensions): Make static.
* main.c (sigchld_handler_no_subshell) [!__linux__]: Don't try
to restart cons.saver.
* subshell.c (sigchld_handler) [!__linux__]: Likewise.
2001-06-22 23:29:18 +00:00
Pavel Roskin
b3339f9281 * main.c: Remove MenuBarEmpty. From Andrew V. Samoilov. 2001-06-20 17:15:41 +00:00
Pavel Roskin
6ccb2a0131 * setup.c (save_setup) [HAVE_X]: Don't save the [Dirs] section.
(load_setup) [HAVE_X]: Don't load the [Dirs] section.
* main.c [HAVE_X]: Disable other_dir and boot_current_is_left.
Adjust all users.
2001-06-20 15:08:18 +00:00
Pavel Roskin
e470f1d208 * main.c [HAVE_X]: Disable change_panel(),
copy_current_readlink() and copy_other_readlink().
Don't do anything with cmdline and command_prompt.
* screen.c [HAVE_X]: Disable panel_event(), chdir_other_panel()
and chdir_to_readlink(). Adjust all callers.
(panel_key) [HAVE_X]: Don't use command_prompt - always
start search on alphanumeric keys.
* setup.c [HAVE_X]: Disable save_layout(), load_layout(), struct
layout. Adjust all dependencies.
2001-06-19 00:43:56 +00:00
Pavel Roskin
bec643d103 * achown.c: Eliminate untyped declarations.
* boxes.c: Likewise.
* cons.saver.c: Likewise.
* hotlist.c: Likewise.
* panelize.c: Likewise.
* rxvt.c: Likewise.
* main.c: Likewise. Make undeclared functions static.
* treestore.c: Make undeclared functions static.
* view.c: Likewise.
* widget.c: Likewise.
2001-06-14 22:33:00 +00:00
Pavel Roskin
4d15e658d7 * main.c (done_mc) [HAVE_X]: Don't use xterm_flag.
(midnight_callback) [HAVE_X]: Don't handle any keys except
Ctrl-x sequences.
Remove useless preprocessor conditionals.
* win.c [HAVE_X]: Disable unused functions.
2001-06-06 21:41:44 +00:00
Andrew V. Samoilov
71ad50aeca * main.c [HAVE_CHARSET]: Remove source_codepage and display_codepage.
They are declared in selcodepage.c.
* setup.c [USE_VFS]: Remove declarations for variables which are
declared in vfs/ftpfs.c.
(load_setup) [HAVE_CHARSET]: init_printable_table commented
out to enable compilation. Error strings tagged for translation.
(init_setup): Optimized.
2001-06-06 11:52:32 +00:00
Pavel Roskin
cd1fd56223 * boxes.c [HAVE_CHARSET]: New charset selection dialog.
* main.c [HAVE_CHARSET]: Don't use eight_bit_clean and
full_eight_bits. Use source_codepage and display_codepage to
deduce the terminal 8-bitness.
* main.h [HAVE_CHARSET]: Change to match main.c.
* setup.c [HAVE_CHARSET]: Implement saving and loading charset
settings.
* util.c (is_printable) [HAVE_CHARSET]: Use charset settings.
* view.c [HAVE_CHARSET]: Implement charset support.
From Walery Studennikov <hqsoftware@mail.ru>.
2001-06-05 22:49:15 +00:00
Pavel Roskin
72db8e927d * key.c [HAVE_TEXTMODE_X11_SUPPORT]: Rename `display' to
`x11_display' and `w' to `x11_window'. Make them static.
(init_textmode_x11_support): Include into init_key().
(done_textmode_x11_support): Include into done_key().
(k_dispose): Make static.
(s_dispose): Likewise.
* key.h: Remove init_textmode_x11_support() and
done_textmode_x11_support().
* main.c: Don't call init_textmode_x11_support() and
done_textmode_x11_support().
2001-06-05 22:08:31 +00:00
Pavel Roskin
47754df0c4 * cmd.c (free_vfs_now) [HAVE_GNOME]: Eliminate.
(reselect_vfs) [HAVE_GNOME]: Likewise.
* main.c (ctl_x_map) [HAVE_GNOME]: Disable add2hotlist_cmd.
(done_mc) [HAVE_X]: Don't call save_hotlist().
* setup.c (save_setup) [HAVE_X]: Likewise.
(done_setup) [HAVE_X]: Don't call done_hotlist().
2001-06-02 06:52:28 +00:00
Pavel Roskin
429c5fcd58 * hotlist.c [HAVE_X]: Don't use ctrl_pressed().
* widget.c [HAVE_X]: Likewise.
* main.c [HAVE_X]: Likewise. Don't call init_key() and
init_key_input_fd().
* setup.c [HAVE_X]: Remove some variables that make no sence
for the GNOME edition. Eliminate save_panel_types().
* view.c [!PORT_WANTS_VIEW]: Eliminate view_mode_callback().
2001-06-02 01:17:27 +00:00
Pavel Roskin
17724b4004 * cmd.c (quick_cd_cmd) [HAVE_GNOME]: Disable.
* main.c (sort_cmd) [HAVE_GNOME]: Likewise.
(ctl_x_map) [HAVE_GNOME]: Disable "Ctrl-x j" - background jobs.
2001-05-30 00:16:19 +00:00
Pavel Roskin
fdf8c736e5 * xslint.c: Remove slang_init() and FIXME in the comment.
* main.c (main) [!HAVE_SLANG]: Don't call slang_init().
2001-05-29 05:09:43 +00:00
Andrew V. Samoilov
6eda540762 '* src/main.c: Correct some comments after #endif
(shell): Remove comment and #ifdef around shell variable.
(process_args) [HAVE_SUBSHELL_SUPPORT]: All related args enclosed
between one #ifdef ... #endif pair.
(process_args): smbfs_set_debug () takes a debug level as argument,
commented out.

* vfs/sfs.c (shell): Variable moved to ...
* vfs/util-alone.c (shell): ... here'
2001-05-28 14:19:34 +00:00
Pavel Roskin
af11550b22 * main.c (OS_Setup) [!HAVE_X]: Exit immediately if TERM
environment variable is unset or empty.
2001-05-27 15:33:46 +00:00
Pavel Roskin
2a6c911579 * cmd.c: Clean up useless preprocessor directives.
(symlink_cmd): Warning fix.
* dlg.c (dialog_handle_key) [HAVE_X]: Disable suspend on Ctrl-z.
* main.c (do_suspend_cmd) [HAVE_GNOME]: Remove.
(suspend_cmd) [HAVE_GNOME]: Likewise.
2001-05-26 02:00:52 +00:00
Pavel Roskin
327797ea96 * INSTALL: Remove information about Tk and XView. Change the
mailing list addresses again.
* FAQ: Change the mailing list addresses again.
* MAINTAINERS: Likewise.
* README: Likewise.
* doc/mc.1.in: Likewise.
* gnome/gmc-window.c: Likewise.
* lib/README.xterm: Likewise.
* lib/mc.ext.in: Likewise.
* lib/mc.hint*: Likewise.
* lib/mc.hlp.hu: Likewise.
* po/*.po: Likewise.
* src/main.c: Likewise.
2001-05-18 16:28:22 +00:00
Pavel Roskin
cc8fa6552a * main.c [HAVE_GNOME]: Disable more code.
* cmd.c [HAVE_GNOME]: Likewise.
2001-05-15 00:53:48 +00:00
Pavel Roskin
532c80d929 * complete.c [HAVE_GNOME]: Likewise.
* main.c [HAVE_GNOME]: Likewise.
2001-05-14 22:17:06 +00:00
Pavel Roskin
5dbac5708e * FAQ: Change the mailing list addresses and the download
locations.
* INSTALL: Likewise.
* MAINTAINERS: Likewise.
* README: Likewise.
* doc/mc.1.in: Likewise.
* gnome/gmc-window.c: Likewise.
* lib/README.xterm: Likewise.
* lib/mc.ext.in: Likewise.
* lib/mc.hint*: Likewise.
* lib/mc.hlp.hu: Likewise.
* po/*.po: Likewise.
* src/main.c: Likewise.
2001-04-20 19:58:55 +00:00
Pavel Roskin
bb912def1a * gtkedit/editcmd.c: Remove support for XView layout attributes.
* gtkedit/editoptions.c: Likewise.
* pc/chmod.c: Likewise.
* pc/drive.c: Likewise.
* src/boxes.c: Likewise.
* src/chmod.c: Likewise.
* src/dlg.c: Likewise.
* src/dlg.h: Likewise.
* src/filegui.c: Likewise.
* src/find.c: Likewise.
* src/hotlist.c: Likewise.
* src/layout.c: Likewise.
* src/listmode.c: Likewise.
* src/main.c: Likewise.
* src/option.c: Likewise.
* src/panelize.c: Likewise.
* src/wtools.c: Likewise.
* src/wtools.h: Likewise.
* vfs/smbfs.c: Likewise.
2001-04-06 21:48:11 +00:00
Pavel Roskin
66457d3670 * main.c (main): Don't call edit_init_file() - the editor should
care about its files itself.
2001-02-26 16:54:23 +00:00
Pavel Roskin
4e57e7d468 * main.c (main): Fix compilation error when configured without
subshell support.
2001-02-10 04:28:56 +00:00
Pavel Roskin
e6d2fdadd2 * main.c (main): Do not fork subshell for mcedit/mcview. 2001-02-08 01:50:12 +00:00
Pavel Roskin
75b84a3b47 * main.c (handle_args): Exit if no arguments are given to mcview.
[HAVE_GNOME]: Don't examine argv[0] - it's done separately.
2001-01-27 06:43:42 +00:00
Andrew V. Samoilov
119406157c * main.c (CmdMenu): don't include edit_user_menu_cmd ()
if USE_INTERNAL_EDIT is not defined
	(main): call edit_init_file () if USE_INTERNAL_EDIT is defined only
	(listmode_cmd): messages are localized
2000-11-02 23:35:11 +00:00
Pavel Roskin
3263fee6d4 * listmode.c, listmode.h, main.c: Consistently using define
LISTMODE_EDITOR to enable the experimental listmode editor.
* main.c: Don't allow two adjacent separators in the Command
menu.
2000-09-26 22:38:13 +00:00
Pavel Roskin
0c3398dcd6 * features.h: Joined with textconf.h to avoid name clash with
GNU Libc.
* features.c: Renamed to ...
* textconf.c: ... this
* Makefile.in, cmd.c, main.c, text.c: necessary adjustments
2000-09-14 18:18:24 +00:00
Pavel Roskin
0cc57d07e0 * POTFILES.in: src/features.inc renamed to src/features.c
* main.c [HAVE_X]: print_mc_usage() and print_color_usage()
removed.
version() moved to ...
* features.inc: ... here, renamed to features.c
* main.h: status_using_ncurses moved to ...
* features.h: ... here
* cmd.c, text.c: include "features.h"
* cmd.h: include "panel.h"
* Makefile.in: changed to use features.h and features.c
2000-08-23 14:41:59 +00:00
Pavel Roskin
e828211662 Updated address of Free Software Foundation 2000-08-22 22:50:00 +00:00
Pavel Roskin
7264379530 * main.c [HAVE_GNOME]: disable chmod and chown - they were
broken and obsoleted by the "Properties" dialog
2000-08-22 22:07:26 +00:00
Pablo Saratxaga
a998bc8f4f made 8bit in/output the default 2000-07-21 13:15:53 +00:00
Jacob Berkman
30fba8c073 2000-06-20 Jacob Berkman <jacob@helixcode.com>
* configure.in: check for gnome-libs with window icon support

	* acconfig.h: add icon define
2000-06-20 19:50:31 +00:00
Miguel de Icaza
b028900fdd 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add macro %k it is block file name
       Add macro %e it is error file name
       Add macro %i it is cursor column indent of spaces, only for edit
       Add macro %y, it is syntax of current file in editor, only for edit
       Add condition y , it is syntax pattern of current file in edit
       Add macro %x it is extension of current file
       Add macro %m it is current menu filename

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
	Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
	edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
	(the message of David H. Martin <dmartina@usa.net>)

2000-05-05  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* src/user.c:	Add condition (x filename) into mc.menu .
			for "Open next a free console" and like.

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	src/user.c: fix segfault in chunk_alloc of glibc, when into condition
	of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* gtkedit/edit.c:
       Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
	* gtkedit/editmenu.c:        home: ~/.cedit.menu, local: .cedit.menu
	Marked block is access now from an user edit menu
	Access ~/.cedit/cooledit.block for insert to cursor place from
	user edit menu.
	Created system cedit.menu

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

    	* gtkedit/editdraw.c:
	Improved a status string of cool editor for best understand,
	and to add char,hex view.

2000-05-04 Richard Hestilow <hestgray@ionet.net>

	* gnome/gdesktop.c: Fixes snap to grid.
2000-05-09 01:18:27 +00:00
Norbert Warmuth
e37737c0c9 2000-02-23 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/ftpfs.c: Definition of PORT changed in the middle of ftpfs.c
with unexpected side effects (only when HSC_PROXY was
defined). Introduce HSC_PROXY_PORT and FTP_COMMAND_PORT and use
where appropriate.

(dir_load): Do not hard code the directory cache timeout to 10
seconds. Instead use the setting from Options/Virtual VFS ...

* vfs/fish.c (file_store): honour changed semantics for return value
(on error -1 is expected).

* vfs/ftpfs.c (file_store): dito


* gtkedit/editcmd.c (edit_replace_prompt): fix incorrect
initialization of array of structure (gcc version 2.96 20000131
chokes on it).

* lib/mc.hint: C-y and not C-u can be used to insert text in input
lines (e. g. text which has been deleted with M-d).

* configure.in: Fix the extfs-configure-fragment-in-final-output bug

* src/main.c (parse_control_file): add missing right parentheses

* src/boxes.c: fix incorrect initialization of array of structure (gcc
version 2.96 20000131 chokes on it).
2000-02-23 07:43:14 +00:00
Pavel Machek
8dcb55ce88 2000-02-01 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* gicon.c (gicon_init): make missing icons non-fatal error

        * gmain.c, gdesktop.c: added option not to display desktop icons
2000-01-31 15:05:23 +00:00
Pavel Machek
5124817446 2000-01-24 Andrew V. Samoilov <sav@bcs.zp.ua>
* main.c (parse_control_file): add extra secutity checks for
	 control file. It cannot be group/world writable;
	(ctl_x_map, default_map, argument_table): added const qualifier.

	* fixed segfault in print_mc_usage

	(pavel@ucw.cz did the commit)
2000-01-24 13:27:43 +00:00
Miguel de Icaza
0a1238fe83 2000-01-03 Aaron Lehmann <aaronl@vitelus.com>
* gdesktop.c, gdnd.c, gaction.c, gicon.c,
	gnome-file-property-dialog.c, gpopup.c, gpopup2.c, gprefs.cgmain.h,
	setup.c: Add option of using GNOME "magic" routines to determine file
	types. This makes MC intelligently look at the data in the file to see
	what type of file it is, rather than looking at the filename extension.
	This slows down MC quite a bit, so it has been made an optional
	preference item. Type detection is expected to improve as mime-magic
	matures.
2000-01-23 22:25:26 +00:00
Pavel Roskin
36facc201c vfs/vfs.h: use #warning only for gcc. Not all compilers
understand it
src/main.c, src/view.c: #warning's replaced with FIXME's.
They were not for users, but for developers
1999-12-22 04:04:23 +00:00
Miguel de Icaza
b8c215a830 Patch to support +line 1999-12-08 22:15:13 +00:00
Pavel Machek
bcfd532240 1999-12-08 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* ftpfs.c: basically replaced ftpfs with new one. Unlike the
        previous one, this uses new direntry.c layer, so shared_ftp_fish.c
        can be killed.

        This is new code, so beware.
1999-12-08 11:39:14 +00:00
Pavel Machek
b5c8119459 Add possibility to free vfs now. 1999-11-11 14:35:40 +00:00
Miguel de Icaza
42e09b6cf8 1999-11-02 Miguel de Icaza <miguel@gnu.org>
* main.c (OS_Setup): Do not warn if TERM is not set for the GNOME edition.
1999-11-02 21:39:36 +00:00
Miguel de Icaza
7347dc591a 1999-09-29 Federico Mena Quintero <federico@redhat.com>
* gcorba.c (corba_activate_server): New function.  Activate the
	POA manager here, when we are actually ready to process requests,
	instead of at the beginning of initialization.

	* gmain.c (create_panels): Call corba_activate_server().
1999-09-29 20:14:43 +00:00
Norbert Warmuth
d836e5a79a 1999-09-19 Andrew V. Samoilov <sav@bcs.zp.ua>
* src/user.c (check_patterns): char* is used instead of char [] in sizeof

* src/util.c (string_perm): prefix named pipes by 'p' and not by `s'


1999-09-19  David Martin <dmartina@usa.net>

* gtkedit/editcmd.c (edit_print_string): Use unsigned char so that
8 bit chars from strftime get displayed when inserting date.

* lib/mc.ext.in: Add entries for bzip2 compressed pages as used in
Mandrake 6.0. The generic entry for bzip2 moved to the end of the
file to avoid interferences. In this one I changed the extension check
to a type check (as used for gzip) which might give problems in some
systems.

* configure.in: Use -Tlatin1 to format man pages when available and
"view" 8 bit chars.


1999-09-19  Norbert Warmuth  <nwarmuth@privat.circular.de>

* gtkedit/edit.h: Include files reordered in order to make it compile with
--with-debug

* gtkedit/editcmd.c (menu_save_mode_cmd): calculate dialog width
dependent on lenght of translated strings to display.

* src/mad.c, mad.h, util.c, util.h: Move mad-functions from util.[ch]
to mad.[ch]

* src/option.c: Include files reordered in order to make it compile with
--with-debug

* src/mad.c (mad_init): New function. Initialize debug FILE pointer to
stderr (moved to a function because not on every system stderr is
a constant).
(mad_set_debug): added const qualifier

* src/main.c (main): call mad_init

* po/*.po: s/defination/definition/

* gnome/Makefile.in ($(MAGICDEV_GENERATED)): Make it compile with $buildir
!= $srcdir.

* vfs/ftpfs.c (ftpfs_set_debug), vfs.h: added const qualifier.

* vfs/mcserv.c: removed definition of mad_strconcat which is also
in mad.c.
1999-09-19 23:09:07 +00:00
Miguel de Icaza
9fba82b038 typo fix - Federico 1999-09-09 22:46:33 +00:00
Miguel de Icaza
b906505dad 1999-08-31 Federico Mena Quintero <federico@redhat.com>
* main.c: In the GNOME version, we want cd_symlinks to be FALSE.
	The VFS should never have to look at this variable, but alas, it
	does.  BUGFIX:  Red Hat Bugzilla #2344.

	* setup.c: Disable cd_symlinks in the GNOME version.
1999-08-31 22:55:18 +00:00
Norbert Warmuth
d393e2e098 1999-08-30 Norbert Warmuth <nwarmuth@privat.circular.de>
* lib/mc.sh: create temporary files in ~/.mc/tmp in order to avoid
symlink attacks (mcfn_install and the man page still needs to be
updated).

* src/main.c (print_mc_usage): Print the bug reporting address.
(main): Put prompt in a new line at termination.

* vfs/shared_ftp_fish.c (get_line): Fixed off by one error ('\0' might
have been written one slot past the supplied character array).

* vfs/ftpfs.c (resolve_symlink_without_ls_options): Don't dump core on
strange symlinks (ls -la doesn't reveal where the symlink points to
and ls -lLa doesn't resolve the symlink either)

Added protection against recursive symbolic links.
1999-08-30 06:01:37 +00:00
Miguel de Icaza
9f81821878 1999-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* acconfig.h: Add WITH_SMBFS

	* macros/gnome-vfs.m4: Support conditional samba support.

1999-06-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gsession.c (create_default_panel): Use directory specified in
	command line.

	* gcorba.c (corba_create_window): Pass the directory we receive or
	cwd if this value is NULL.

	* gmain.c (non_corba_create_panels): Use parameter for startup
	directory (use the this_dir external directory for this).
	(create_panels): Pass this_dsir to non_corba_create_panels and
	corba_create_window.
1999-06-22 21:02:08 +00:00
Miguel de Icaza
2a8730b21c 1999-06-01 Robert Brady <rwb197@ecs.soton.ac.uk>
* file.c (move_dir_dir): Give an error when an attempt is made to
	move an empty directory into itself.

1999-06-14  Wayne Roberts <wroberts1@cx983858-b.orng1.occa.home.com>

	* vfs/smbfs.c: New file.  Implements the Samba-based file system.

	* vfs/vfs.h: Declare vfs_smbfs_ops, vfs_file_is_smb.

	* vfs/vfs.c (vfs_file_is_smb): implemented.
	(vfs_init) register smbfs.

	* vfs/samba: Incorporate SAMBA source code required for smbfs

1999-05-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* Make.common.in (confdir): Define confdir as sysconfdir.  This
	should fix the problem we had with FSSTND distributions.
1999-06-22 19:56:36 +00:00
Miguel de Icaza
73a90854ac 1999-05-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c (handle_args): Handle --desktop-linksdir without using X
1999-06-01 04:14:47 +00:00
Norbert Warmuth
3fd90ce83b This patch set adds a new feature to the text edtion (off by default).
`--with-tm-x-support'
     This option enables minimal X Window support in the text edition. It
     enables MC to query the status of the modifiers CONTROL and SHIFT
     when invoked in a terminal emulation under X11. That's necessary
     to recognice key combinations like C-HOME or S-Cursor key.


Wed Apr 21 20:37:32 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* configure.in: New option --with-tm-x-support, use MCCFLAGS and
MCLIBS for build flags which are specific to the text edition.

* INSTALL: Added documentation for --with-tm-x-support

* src/Makefile.in: use MCCFLAGS and MCLIBS


Wed Apr 21 20:19:45 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/key.c (get_modifier): Query the state of the modifier keys when
running inside a terminal emulation under X11.

* src/key.c (init_textmode_x11_support, done_textmode_x11_support): new
functions, only used in the text edition. Connect to and disconnect
from the X Server when DISPLAY is set.

* src/key.h: added prototypes for the new functions

* src/main.c (main): call (init|done)_textmode_x11_support
1999-04-21 19:18:31 +00:00
Miguel de Icaza
60f80115f3 1999-04-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* treestore.c (tree_store_save_to): Moved the functionality from
	tree_store_save() to here.
	(tree_store_save): Save the tree in the default location in an
	atomic fashion.
	(tree_store_load_from): Moved the functionality from
	tree_store_load() to here.
	(tree_store_load): Load the tree from the default location.

	* treestore.h (MC_TREE_TMP): Added a #define for the temporary
	name we'll use when saving the tree.  Moved the #defines from
	tree.h over to here.

	* main.c (main): Use tree_store_load() and tree_store_save().
	Removed the mc_tree_store_load/save() versions.

	* tree.c (load_tree): Use tree_store_load().
	(save_tree): Use tree_store_save().
1999-04-16 22:02:09 +00:00
Andrew T. Veliath
9e7e543cef src/
* main.c (_do_panel_cd): If we are using GNOME, and the panel is a
	desktop panel, open up a new panel for the contents.

gnome/
	* gdesktop.c (create_panel_from_desktop): Assign selected_index
	when we find the last selected icon.
	(desktop_icon_info_open): Desktop directory open case moved to
	main.c to handle both general and action cd commands.

vfs/
	* extfs.c (extfs_unlink):
	(extfs_mkdir):
	(extfs_rmdir):
	(remove_entry): New functions.
	(vfs_extfs_ops): Add unlink, mkdir and rmdir functions to table.
	Add descriptions for these to the extfs README.
1999-04-13 02:05:15 +00:00
Miguel de Icaza
af67e06272 1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmetadata.c (gmeta_del_icon_pos): New function to delete the
	icon position metadata from a file.

	* gcmd.c: Removed unused function gnome_quit_cmd().

1999-04-05  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* main.c (main): Call mc_tree_store_save() when the program
	terminates.
1999-04-06 03:49:34 +00:00
Miguel de Icaza
b3bb157ad5 These are a bunch of changes to fix CORBA and session management. They
are almost complete (i.e. to handle all nitty gritty cases), but they
seem to be working OK right now.  SM should be much more stable now.
Please tell me if you find any weird behavior - Federico

1999-03-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gdesktop-icon.c (desktop_icon_realize): Remove the
	WM_CLIENT_LEADER property from icon windows so that window
	managers will not store SM information for them.

	* gnome-open-dialog.c: Added missing #includes.

	* gdesktop-init.c (desktop_init_at): Removed an unused variable.

	* gdesktop.h: Added some missing prototypes.

	* gmain.h: Added some missing prototypes.

	* Makefile.in: Added gsession.[ch] to the list of sources.

	* gmain.c (create_panels): Consider whether we have a CORBA server
	and session management.

	* gdesktop.c: #include "gdesktop-init.h"
	* gdesktop.c: Added a missing cast to GNOME_DIALOG.

	* gmain.c (create_panels): Removed the run_desktop global
	variable.

	* glayout.c (create_container): Set the wmclass of the panel to
	include its unique ID.

	* gsession.[ch]: New file with the functions that deal with
	session management.

	* glayout.c (gnome_exit): Use session_set_restart().

	* gcorba.c (corba_init): Now returns an int with an error value.
	(corba_init_server): Initialize the server properly.
	Fixed all the object implementation code.
	(corba_create_window): New function used to create a window with
	the CORBA server.

	* gmain.c (gnome_check_super_user): Now the check for running as
	root is done here.  There should be no GUI code in src/.

1999-03-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* dlg.c (dlg_run_done): Do not call the callback of a NULL current
	widget.

	* setup.h: Added missing prototype for setup_init().

	* filegui.c (check_progress_buttons): Added a missing return
	value.

	* dlg.c (remove_widget): Added a missing return value.

	* main.c: Removed the global directory_list variable.
	Removed the main_corba_register_server() function.

	* main.h: Removed the global run_desktop variable.

	* panel.h: Now the panel structure has a unique numerical ID used
	for session management.

	* screen.c (panel_new): Maintain a unique ID for each panel.

	* main.c (maybe_display_linksdir): Handle display of the desktop
	init dir here.
	(main): Call gnome_check_super_user().
	(init_corba_with_args): Call corba_init_server().

	* main.c (init_corba_with_args): Do CORBA initialization here.  Also
	removed the global force_activation option.

1999-03-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* vfs.c (vfs_add_current_stamps): Only do stamping of the panels
	if they exist.

	* mcserv.c: #include <sys/wait.h>
	(get_client): Put `#ifdef __EMX__' around an otherwise-unused
	variable.

	* utilvfs.c (vfs_split_url): Fix NULL <-> 0 confusion when
	comparing characters.

	* ftpfs.c (retrieve_dir): Removed unused variable dot_dot_found.

	* extfs.c (extfs_init): Assign `key' to c, not `&key'.
1999-03-30 06:09:56 +00:00
Jonathan Blandford
05e0754f46 1999-03-29 Jonathan Blandford <jrb@redhat.com>
* gdesktop.c (create_desktop_dir): improved wording.
	(create_desktop_dir): improved wording.
1999-03-29 21:45:59 +00:00
Miguel de Icaza
9207af342d COOL CODE! OH MAN! I AM GOOD!
Ok, so this time I got the stuff to auto-load desktop startup links.
This means you can ship stuff to pre-configure the desktop of the
users now.

We support program-based setup and url-links.

Details on the lib/README.desktop file
1999-03-20 18:08:52 +00:00
Jonathan Blandford
f539ceed2b 1999-03-19 Jonathan Blandford <jrb@redhat.com>
* main.c (main): We don't want to restart if we hit cancel.
1999-03-19 23:07:58 +00:00
Miguel de Icaza
256467b407 Do not popup a window if it fails to mount the device.
Reported by Tim Janik.

Miguel.
1999-03-18 18:43:52 +00:00
Jonathan Blandford
fbc07a11d4 1999-03-17 Jonathan Blandford <jrb@redhat.com>
* main.c (main): Put in a warning when run as root.

1999-03-17  Jonathan Blandford  <jrb@redhat.com>

	* gnome-file-property-dialog.c (generate_icon_sel): I don't know
	who broke this, but it was a mess.  It now does the right thing,
	and works...
1999-03-17 19:21:16 +00:00
Miguel de Icaza
0559c128f7 1999-03-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdialogs.c: Support ui->ctx to be NULL, as file.c will set this
	to NULL for background operations.


1999-03-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* utilunix.c (g_readlink): New function.  Wraps all the nonsense
	of readlink into a nice routine.

	* filegui.c: Support ui->ctx to be NULL, as file.c will set this
	to NULL for background operations.

	* background.c (do_background): Handle EINTR in dup2.
1999-03-11 02:00:12 +00:00
Norbert Warmuth
0c32b6f5f2 Tue Mar 2 22:28:39 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* main.c (panel_clean_dir): New function: reset all counters of a
WPanel and clean directory list.

* various places: Use panel_clean_dir instead of clean_dir whenever
a WPanel is available. This solves the problem reported by Enrico
Scholz (screen refresh while panel reload with an old/now invalid
panel->count).
1999-03-02 21:33:48 +00:00
Miguel de Icaza
8220628b18 Scanning devices now can run external program g-print 1999-02-25 05:11:35 +00:00
Miguel de Icaza
ad80925039 Add a global file to list directories that are slow (afs, etc)
Fixes for SuSE compilation.
1999-02-25 04:21:30 +00:00
Miguel de Icaza
96a7f2c4f6 Sync 1999-02-23 02:53:30 +00:00
Miguel de Icaza
656c16979d Need to figure this one out 1999-02-16 02:03:34 +00:00
Miguel de Icaza
1370e6c166 Notice: release coming in about 90 minutes.
Miguel.

1999-02-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gcmd.c (gnome_open_terminal_with_cmd): New routine, based on the
	gnome_open_terminal routine, that will allow the user to specify a
	command to execute (used internally).

	* gaction.c (gmc_edit_filename): Support for the GNOME editor
	environment properties.

	* gdesktop.c (create_desktop_dir): Support GNOME_DESKTOP_DIR
	variable to configure the desktop directory.
1999-02-15 21:19:03 +00:00
Miguel de Icaza
7ca0948527 OS/2 portability changes by Ilya 1999-02-13 21:39:18 +00:00
Norbert Warmuth
04ebcebc1b Wed Feb 3 22:27:04 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* src/util.c (strip_password): Extented to find the url in the first
parameter. The second parameter tells whether it should search the
url (indicated by known prefixes) in the first parameter or whether
the first parameter is a url without a prefix ("ftp://", "/#ftp:",
"/#mc:").

* src/main.c (directory_history_add): Strip the password (if any) from
the freshly added value.

* src/widget.c (push_history): ditto. There's a ugly special casing
necessary for the network and ftp link dialogs (urls are entered
with out prefix).

* src/widget.c (history_put): Restrict read and write access to the
history file to the owner (Just in case I forgot to strip passwords
somewhere).


Mon Feb  1 19:32:12 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/ftpfs.c (insert_dots): renamed from insert_dot. We have to
insert ".." as well or directories from ftp servers which don't
list "." and ".." are displayed with an additional "/".
1999-02-03 23:19:40 +00:00
Miguel de Icaza
53c34b967d 1. Long filename bug fix.
2. corba-gmc is now the default "gmc" installed
3. corba-gmc now by default tries to activate a running instance
   instead of registering a server.

Miguel.
1999-01-28 04:37:47 +00:00
Timur Bakeyev
a39568367e Glibing..... (2)
Wed Jan 27 03:17:44 1999  Timur Bakeyev <mc@bat.ru>

	* Converted memory managment to Glib. Now we use g_new()/g_malloc()/
	g_strdup()/g_free() routings. Also, copy_strings() replaced by
	g_strconcat(), strcasecmp() -> g_strcasecmp(),and sprintf() by
	g_snprintf().

	* Some sequences of malloc()/sprintf() changed to g_strdup_printf().

	* mad.[ch]: Modified, to work with new GLib's memory managment. Fixed
	a missing #undef for tempnam, which caused dead loop. Add several new
	functions to emulate GLib memory managment.

	*main.c, mad.[ch]: Add a new switch  "-M", which allows to redirect MAD
	messages to the file.

	* util.[ch], utilunix.c: Modified, deleted our variants of strcasecmp()
	and strdup() - we have g_ equivalences. Remove get_full_name() - it is
	similar to concat_dir_and_file(). Some other tricks with g_* functions.

	* global.h: Modified, extended. Now it is main memory mangment include -
	i.e. all inclusions of <stdlib.h>, <malloc.h>, <glib.h>, "fs.h", "mem.h",
	"util.h" and "mad.h" done there. This elimanates problem with proper or-
	der of #include's.

	* All around the source - changed order of #include's, most of them gone
	to global.h (see above), minor changes, like "0" -> NULL in string func-
	tions.
1999-01-27 01:08:30 +00:00
Timur Bakeyev
f28489d29a Rearanged #include's, so glib.h follows fs.h, but preceed util.h and mad.h,
as this required for proper defenition of memory debbuger.
1999-01-19 02:34:37 +00:00
Miguel de Icaza
e0faaa671f Merges from the FileOpContext-changes branch. Please see
the ChangeLogs for full information. - Federico
1999-01-14 01:10:32 +00:00
Miguel de Icaza
0fa363d984 1999-01-10 Ilya Zakharevich <ilya@math.ohio-state.edu>
* gtkedit/edit.c (edit_load_file): Off-by-one error disabled editing.

1999-01-11  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* configure.in (REGEX_O): Always include regex.o as the code we
	are using in gmc is not using regcomp/regexec, but the internal
	Emacs API.

	* src/regex.c: Do not compile the POSIX compatibility code, as we
	do not use it.

Tue Dec 29 15:49:45 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

	* doc/mc.sgml, mc1.in (Color section): minor polishing
	(Layout section): documented Highlight...
1999-01-12 09:08:31 +00:00
Miguel de Icaza
4c6fef14d8 Export access to the treestore
Make gtkdtree use the treestore cache.

Next step: store the ->scanned attribute of tree_entry (otherwise, no
speedup will be noticed at all).  It is a 10 minute hack, but I will go
have dinner now.

Miguel.
1999-01-12 05:55:12 +00:00
Miguel de Icaza
a7170a4f7a OS2 now uses property defines instead of OS2_NT 1999-01-10 08:55:35 +00:00
Miguel de Icaza
b862fdfd8a 1999-01-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c (update_one_panel_widget): GNOME version does the panel
	update here (this is an optimization, as we do not want do_refresh
	to do anything.

	* dialog.c (do_refresh): Remove this optimization as it was
	disabling the repainting of the screen contents.

	* hotlist.c (done_hotlist): The hotlist might not be loaded
	anymore.

1999-01-02  Miguel de Icaza  <miguel@nuclecu.unam.mx> 1999-01-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gtools.c (query_dialog): Simplified.
1999-01-03 18:34:40 +00:00
Miguel de Icaza
8f2327ecdb 1999-01-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmetadata.c (gmeta_get_icon_pos): Fixed the memory leak here.

	* gicon.c (gicon_get_icon_for_file): Actually return a value
	here.

Editor fixes, vfs warning fixes;
1999-01-02 07:46:20 +00:00
Miguel de Icaza
40fd24d781 The CORBA setup actually works properly now :-) 1998-12-31 03:38:48 +00:00
Miguel de Icaza
0319fd33d5 The CORBA framework works 1998-12-31 01:18:31 +00:00
Miguel de Icaza
f38ac54dbe 1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* screen.c (panel_set_sort_order): New routine to set the sorting
	mode.
	(panel_re_sort): New routine to force a resort on a panel.

	* main.c (sort_cmd): Use the new routines.

1998-12-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
1998-12-30 23:49:58 +00:00
Miguel de Icaza
d24269087f Lots of usability changes for the desktop.
1998-12-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gdesktop.c (desktop_icon_delete): New function, used for
	dicon_delete.
	(load_desktop_icons): Implemented the incremental reloading of
	desktop icons.  This should make the code much nicer.
	(reload_desktop_icons): Call x_flush_events to force a display at
	that point.

	* gpopup.c (dicon_delete): Implement this operation.
	(desktop_icon_execute): Use the existing implementation for
	launching desktop icons instead of a new hacked up version

	(desktop_icon_actions): Until copy/move is implemented, do not
	even list them to the user.

	* gdesktop.c (create_desktop_dir): No trashcan setup until it
	works.

	* gscren.c (panel_widget_motion): Use button 2 for dragging and
	asking.
1998-12-30 02:51:01 +00:00
Norbert Warmuth
23cc8d469c Thu Dec 24 18:30:53 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* configure.in: Deleted du checks

* INSTALL: Deleted --with-dusum documentation.

* doc/mc.sgml, mc.1.in: Completed documentation about the Options/
Configuration dialog. Added Advanced chown subsection. Deleted
variables from the Special settings section which are now covered
by the configuration dialog.

* gnome/layout: Adapted for the new option Compute Totals in the
Configuration dialog.

* screen.c (recalculate_panel_summary): new function which recalculates
the summary information for the mini-status.

* screen.c (panel_reload): use recalculate_panel_summary

* screen.c (do_file_mark): Honour that dirsizes computed is now a
per entry flag.

* option.c: Added Compute Totals to the configuration dialog.

* file.c (compute_dir_size): made non static

(panel_operate_flags): Don't compute directory sizes if verbose
operation are off.

* cmd.c (dirsizes_cmd): Rewritten to use compute_dir_size as suggested
by Miguel, i.e. get rid of du. Now the dirsizes_cmd honours a
selection and computes sizes only for marked directories. Possible
improvement: add a dialog (or C-C?) to abort computation.

* dir.h (file_entry), panel.h (WPanel): Made the dirsizes computed
flag a per file flag.

* dir.c, find.c, panelize.c, screen.c: Adapted to new file_entry and
WPanel structure.

* features.inc: Deleted DUSUM information

* mc.hlp: remade because of changes in doc/mc.1.in
1998-12-24 21:37:24 +00:00
Norbert Warmuth
7f3a7ac4d7 Mon Dec 21 22:26:34 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* mountlist.c: Define xBSD on FreeBSD.

* doc/mc.sgml, mc.1.in: Deleted obsolete information about
tar_gz_memlimit. Partially rewrote the section about the
Virtual FS.. configuration dialog.

* main.c (parse_an_arg): New function, popt callback. Option
parsing in gmc was broken. The gnome*_init_with_popt_table free
the option tables and gmc tried to use the option tables later.

* main.c (handle_args): In the Gnome edition don't parse the
options a second time.

* boxes.c (configure_vfs), setup.c: Deleted obsolete options.
tar.gz files are now always unzipped to a temporary file on disk.

* gnome/layout: Deleted obsolete widgets from the Virtual FS configuration
dialog.

* vfs/tar.c: Deleted global variable tar_gzipped_memlimit.

Mon Dec 21 14:28:55 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* filenot.c (my_mkdir_rec): Someone broke this function completely by deleting
a line. Funny things happen if you use an already freed pointer.
Improved error handling: try to make directories recursivly until
mkdir succeeds or fails with errno != ENOENT. Now you will get the
correct error message when you don't have permission to create a
directory.

* mountlist.c: Deleted function prototypes for strdup and strstr,
they might conflict with definitions in the system header files.
1998-12-21 23:30:53 +00:00
Miguel de Icaza
ef24ca475e 1998-12-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c (try_to_select): We do not need to select the item
	manually in this case, as the X code will do this for us.
1998-12-11 02:13:35 +00:00
Miguel de Icaza
6b1e4feb3e 1998-12-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* screen.c (panel_reload): Set panel->selected to zero here, this
	will at least guarantee that we do not try to fetch anything
	outside of bounds.

	* main.c: The bar2 is gone as well.
1998-12-09 00:47:40 +00:00
Miguel de Icaza
414df0f7b7 1998-12-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (panel_tree_drag_data_received): Perform drag and drop
	operations on the Tree.
1998-12-03 16:10:25 +00:00
Miguel de Icaza
301e7fbfc3 Many changes:
- Beginning of the CORBA support for the file manager.
	- Tk and XView code dropped.

Miguel
1998-12-02 23:44:06 +00:00
Miguel de Icaza
bf682eb9d1 Warning fixes.
Miguel.
1998-12-02 21:27:27 +00:00
Miguel de Icaza
aaa7b5e9a2 Lots of changes:
- GNOME edition now compiles without any trace of the text mode
  dependencies.

- We no longer link with libraries we do not use (crypt, gpm), this
  fixes the recent bug reports.

- More tree updates, enhancements.

Miguel.
1998-12-02 05:18:20 +00:00
Miguel de Icaza
d493c369f9 Untested handle-args fix 1998-11-10 03:00:25 +00:00
Elliot Lee
45a5cc8bcc gnome version now starts up (handle_args didn't like being called twice),
but SEGV's somewhere in the icon list code. Oh well...
1998-11-04 19:35:33 +00:00
Elliot Lee
154be9f2ed update popt 1998-11-03 23:34:54 +00:00
Pavel Machek
176dc1f70d static's added, do_reget hack removed 1998-10-12 22:07:53 +00:00
Norbert Warmuth
b422d3771e Mon Oct 5 19:59:56 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* main.c (translate_url_to_new_syntax): Translate ftp:// to an
absolute path instead of a relative path (fix to "hotlist" bug
reported by Andrej). This means we drop the "return to last dir"
feature for ftpfs (when leaving ftpfs with ".." returns to the
directory visited before entering the ftpfs).
1998-10-05 18:07:25 +00:00
Pavel Machek
136006707c Fixed cursor positioning so that it does not call any vfs code, few
statics added to vfs layer, no longer use '0' in place of NULL.
1998-09-29 16:01:16 +00:00
Pavel Roskin
bc16e858db Removed warnings about unused variables 1998-09-22 14:45:38 +00:00
Timur Bakeyev
6af6c687c5 Small fix to the previous patch - function return one extra symbol :( 1998-09-11 23:54:23 +00:00
Timur Bakeyev
445046de11 *** empty log message *** 1998-09-11 23:27:49 +00:00
Pavel Machek
a36671fbb5 View file with selection of that file added. 1998-08-31 10:06:25 +00:00
Miguel de Icaza
77c27f6130 Make program relocatable trough MCHOME variable, patch from Ludovic Drolez 1998-08-26 20:23:10 +00:00
Miguel de Icaza
7ebee99cd5 1998-07-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c (translated_mc_chdir): Quick hack to make the old
1998-07-30 22:56:58 +00:00
Carsten Schaar
e6aabb8b00 * main.c (main): 'session_management_setup' will be called after
'gnome_init'.
1998-07-04 20:34:11 +00:00
Vincent Renardias
ff3c190818 Fri, 3 Jul 1998 13:57:37 +0200 [Vincent]
* Updated de.po + typo corrections contributed by joey@debian.org
1998-07-03 11:58:26 +00:00
Miguel de Icaza
b2b9c116f7 Applied Namsh's patch for i18n hotkey support in the menu code -mig 1998-06-08 00:33:31 +00:00
Norbert Warmuth
3550827e81 Mon Jun 1 15:41:20 1998 Norbert Warmuth <k3190@fh-sw.de>
* main.c (translate_url_to_new_syntax): translate the common
ftp url syntax to the syntax used by the new vfs code.

(_do_panel_cd): First translate the path if necessary. This makes
it possible to enter ftp://host on the commandline and in the
directory hotlist. We might need to move the translation code
to the vfs layer if there are other places where we want to enter
ftp://host.


Mon Jun  1 16:00:19 1998  Norbert Warmuth  <k3190@fh-sw.de>

* vfs/ftpfs.c (ftpfs_fill_names): use right character to seperate
prefix and username
1998-06-01 14:34:43 +00:00
Miguel de Icaza
7a7f7a3d85 Integration of Pavel Machek's vfs code split and vfs syntax change.
The VFS code can now be used by other applications (if you compile the
libvfs.a target and link against this).

Syntax has changes internally from the url-like syntax to a new syntax
that does not have ambiguities.  A default conversor for the new syntax
will be provided in the future, also dealing with the user ~/.mc/ext files
is currently in a non-optimal state.

Keep an eye on this mailing list.

Miguel.
1998-05-26 00:53:24 +00:00
Miguel de Icaza
c457d7dd96 Pass2 of the QNX port of mc from Tamasi Gyorgy 1998-05-20 02:19:17 +00:00
Norbert Warmuth
321bc71bab Mon May 18 22:24:09 1998 Norbert Warmuth <k3190@fh-sw.de>
* lib/mc.ini.in: s/reges/regex/

* main.c (process_args): return void, the return value was only
used once but wrong (-h displayed help twice).
(handle_args): -h: don't display help twice
(print_usage): Don't print program name and version, that's
already done by version(0).

* menu.c (menubar_paint_idx): Highlight Hotkeys also on slow
terminals (hotkeys were not displayed at all).
1998-05-19 08:58:41 +00:00
Pavel Machek
d574ff2d58 Patch for keeping the timestamp of ./VERSION
Patch for vi-haters: mc named vi works as mcedit, view - as mcview
aclocal.m4 is remade automatically
1998-05-13 08:29:55 +00:00
Pavel Machek
c278a2c3a7 Minor change for RSX (affects only Win32 port) 1998-05-12 16:38:27 +00:00
Miguel de Icaza
595c9f87d8 Keyboard works on iconic view. It is basically done.
We now just need to get some nice icons.

I am also revamping a little the toolbar, to have a switch to
icon mode and switch to listing mode icons.  To make people
happy.  More on this tomorrow.

Miguel.
1998-05-12 04:26:21 +00:00
Norbert Warmuth
293b05aaac Sun May 10 13:21:45 1998 Norbert Warmuth <k3190@fh-sw.de>
* edit/syntax.c: Disable debug messages on stderr.

* edit/edit.h: Added missing _()


Sun May 10 14:51:03 1998  Norbert Warmuth  <k3190@fh-sw.de>

* ftpfs.c (__ftpfs_chdir): CWD command wasn't sent at all. This
optimation is wrong because for directories containing spaces we
have to "CWD <pathname>" and "LIST -la" instead of
"LIST -la <pathname>".
I implemented a different optimation. Now ftpfs_chdir only stores
the new working directory and sets a flag. __ftpfs_chdir is called
when we really want to change the directory on the ftp server.

(resolve_symlink): Log the directory listing to the logfile.

* ftpfs.h (struct ftpfs_connection): Added a (per connection)
cwd_defered flag.


Sun May 10 13:27:50 1998  Norbert Warmuth  <k3190@fh-sw.de>

* widget.c (handle_char): Don't try to to delete default text in
input widget more than once. Right after MC's start copy_filename
(ESC Enter) failed because a flag wasn't cleared while characters
were stuffed into the commandline (Andrej reported this bug).

* main.c (copy_readlink): usr mc_readlink instead of readlink

* file.c: Changed default for the copy/move option "dive into
subdir if exists" to off (note: this was only possible after the
change in setup.c).

(copy_dir_dir): Activated the previously uncommented code which
implements "Dive into subdirs". Even when there's no case where we
actually would like that behaviour it is a documented feature.
Though I don't wanted to change the default behavour. Hence the
option change.

(file_mask_defaults): set dive_into_subdirs

(file_mask_dialog): Fix for debian Bug #20727: Move operation with
"[ ] Dive into subdir if exists" and destination filename not
wildcarded. If destination is an existing directory then files
will be moved into this directory. If destination is not an
existing directory then src file will be renamed (one file
selected) or an error will be displayed (more than one file
selected).

(file_mask_dialog): made the option "Using shell patterns" local
to the current copy/move operation, i.e. this option is always
initialized with the global options's value. Previously it affected
the global Options/Configuration/shell Patterns.
Another possiblilty would be to make the global option a default
option on startup and keep changes in the copy/move dialog
(without saving these changes with save setup).

* setup.c: Don't save and load options which can be changed
outside the options menu. For example I don't like that
preserve_uid_gid and dive_into_subdirs from the copy/move dialog
are saved and restored (strange, what about the other options from
this dialog?).
It would be much cleaner to make these option read-only. This way
one could edit ~/.mc/ini to provide default option setting on
startup and "Save setup" wouldn't have side effects outside the
option's menu.

Sun May 10 13:24:20 1998  Norbert Warmuth  <k3190@fh-sw.de>

* doc/mc.1.in, doc/mc.sgml, mc.hlp: Updated to reflect new default
for dive into subdirs.
1998-05-10 13:41:43 +00:00
Miguel de Icaza
55fa825b8b Get the global bindings working on gnome/mc
Miguel.
1998-05-05 05:49:57 +00:00
Miguel de Icaza
5a22413c8c The files I was missing. 1998-05-04 23:50:57 +00:00
Miguel de Icaza
530e74ff39 Added session management support to gmc 1998-04-30 06:03:17 +00:00
Miguel de Icaza
98ff71d81f - Simplified the update_panels routine to only care about the current
panel, the old way of using it was an historic relic.

- This now works properly with the GNOME edition.

- Finished/fixed the implementation of the desktop-remove-icon
  functionality.

- Raster's new multi-ok window.  For some reason this is not getting
  loaded.   I am compiling gdb 4.17 now, as it is better for egcs
  output.

Miguel.
1998-04-30 03:21:52 +00:00
Miguel de Icaza
a9c43fc275 Fix the order of the include files -mig 1998-04-28 01:32:41 +00:00
Miguel de Icaza
c752ec9d97 Reorgranized the script execution code to fix a race condition that
only happened in the GNOME code (as the execution of anything from
the file manager in the GNOME version is done in background).

Miguel.
1998-04-24 01:08:06 +00:00
Miguel de Icaza
ce0d7d5e02 argp fixes for gnome edition 1998-04-20 19:35:22 +00:00
Miguel de Icaza
95ac574288 Sync to my tree -mig 1998-04-11 02:53:35 +00:00
Miguel de Icaza
2f0f1be529 Nicer back/forward implementation -miguel 1998-04-09 05:05:14 +00:00
Miguel de Icaza
e0c843048c A bunch of extra TODO items from DrMike have been adressed.
- Double click should work.
- Dragging to other panels shoudl work
- Scrollbar in the viewer
- Entry widgets get their text selected at startup
- Prompts for command if default action does not exist for a filename
- Updated spanish translation.

Plus some other bugs I fixed.

Miguel
1998-04-09 04:58:24 +00:00
Pavel Machek
2ba396f80c My previous patch for subshell.h was incorrect. I'm sorry.
Minor patches for OS2_NT.
Buffer size for pattern expansion was insufficient.
1998-04-08 19:37:06 +00:00
Manish Vachharajani
e4e57dca23 Added a missing parentheses to main.c
hmm, should utilunix.c include textconf.h for  port_shutdown_extra_fds()?
1998-04-08 01:29:30 +00:00
Miguel de Icaza
ca2ffb99b6 Various fixes reported by DrMike:
- Nicer dialog destruction (no flicker)
- refresh of panels after a drop.
- Pause after run is gone in the gnome edition.
- Improved layout for options dialog box.
- Checkbox widgets are implemented, they now work.

Miguel.
1998-04-07 23:45:27 +00:00
Miguel de Icaza
26f6e92abf Fri Apr 3 05:23:20 1998 Alex Tkachenko <alex@bcs.zp.ua>
* configure.in: ALL_LINGUAS test added, to allow specify list
	of languages to be installed by setting env variable before
	configure. If it is empty, it defaults to full list.

	* src/menu.h menu_entry.{hot_pos, is_dupped} dropped

	* src/menu.c: consistency fixes: pull-down menu items are now
	accessible either with arrow keys or with hotkeys, denoted with &
	(and highlighted). (key combinations, placed to the right of items
	intended to be used from outside the menus). Freeing menu entries
	removed as it no longer needed

	* src/main.c, edit/editmenu.c: menubar init code is changed to conform
	above fixes.

	* edit/edit.h: use of "Cancel" in error_dialogs replaced with
	"Dismiss", to avoid collisions in translation of "Cancel" in other
	places with this case.

	* src/boxes.c: select_format() and it's support removed, as it is
	obsoleted by input line history feature. display_init()/display_callback
	fixed to suite i18n changes. sort_box() - alike.

	* src/option.c: pause_options added &'s and gettext calls to expand
	statically assigned values.

	* src/widget.c: (radio_callback) hotkey recognition is changed to
	&-notation, rather than simple uppercase.

	* src/dlg.c: (dlg_try_hotkey) plain symbol comparison replaced with
	call to isalpha(), this fixes errorneous exit from input line, when
	button hotkey is 8-bit NLS char.
1998-04-03 20:00:00 +00:00
Norbert Warmuth
175f488cb8 Wed Apr 1 00:15:30 1998 Norbert Warmuth <k3190@fh-sw.de>
* key.c, key.h (numeric_keypad_mode, application_keypad_mode): New
functions which encapsulate two hardcoded escape sequences from main.c.

* main.c (main): Use the two new functions from key.c

* main.c, screen.c: Moved all file selection keys from the default
keymap to the keymap for panels in listing mode.
Changed *_selection_cmd to *_selection_cmd_panel in panel_keymap
(functions in panel_keymap get a WPanel * as first parameter,
i.e. the indirection with cpanel isn't necessary).

* main.c (midnight_callback): Keys '*' and '-' were not treated
when only_leading_plus_minus==0;
Optimized the if-clauses a little bit (i.e. removed duplicate
checks). More optimation is possible but it would make the whole
stuff completly unreadable.

* key.c (correct_key_code): KP_ADD, KP_SUBTRACT and KP_MULTIPLY
will be translated to +, - and * only if the option
alternate_plus_minus is turned off.

* learn.c (learn_keys): Turn alternate_plus_minus temporarily on
to avoid translation of KP_ADD, KP_SUBTRACT and KP_MULTIPLY in
correct_key_code/make sure keypad is in application mode (makes it
possible to learn this keys).

* cmd.c (reverse_selection_cmd_panel): New function (renamed from
reverse_selection_cmd, takes a WPanel * as parameter, references to
cpanel changed to panel/the passed parameter).
reverse_selection_cmd now simply calls this function with cpanel.
This pair was missing among the *_selection_cmd* functions.

* cmd.h: Added function prototypes.
1998-03-31 22:36:24 +00:00
Miguel de Icaza
e249fcde42 Mon Mar 30 20:02:49 1998 Paul Sheer <psheer@obsidian.co.za>
* main.c, screen.c, dirhist.c, dirhist.h, main.h, widget.c,
	main.h and others?: Directory history added. The previous
	directory history code was removed. The directory history now
	loads and saves using the same routines as the input widget. The
	keys meta-y, and meta-u are used to go backward and forward
	through the history. The buttons to the right and left of the
	current directory display on the panel can be used as well. The
	v button brings up a history, but no key is assigned to this.
	Discussion as to correct color and shape of these buttons is
	open. show_hist() in widget.c is made generic to be called for
	any widget. Help pages still needed to be added for the
	directory history.
1998-03-30 21:04:59 +00:00
Miguel de Icaza
60c595aa91 1998-03-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* menu.c (destroy_menu): Implement destroy_menu for all of the
	ports as a routine that frees the menu entries if
	internationalization has been enabled.

	* wtools.c (quick_dialog_skip): Do not i18n any string that is empty.

Sun Mar 29 23:02:09 1998 Alex Tkachenko <alex@bcs.zp.ua>

	* src/menu.[ch]: new member to menu_entry (hot_pos) introduced to make
	internationalized version of menu use externally defined hotkeys
	(denoted with preceding &). create_menu() fixed to load intl text of
	the entries. Some fixes around menu.c to enable usage of reloaded
	hotkeys.

	* main.c, editmenu.c: menu initialization code fixed to conform new
	menu structure. editmenu init code includes N_(..) now.

	* menu.c, layout.c, editwidget.c: bar menu items displacement is made
	dynamically upon initialization and window size changes. Mouse event
	processing is fixed accordingly.

Sat Mar 28 13:18:36 1998 Alex Tkachenko <alex@bcs.zp.ua>

	* src/screen.c: (repaint_file) last patches to format_file() in the
	same file broke appearance of panels in brief mode -- fixed.
1998-03-30 20:59:37 +00:00
Pavel Machek
303cd55bce Minor changes for IBM CSet.
#include <direct.h> is not needed anymore
We need #include <io.h> somewhere
1998-03-29 22:23:24 +00:00
Norbert Warmuth
02978a50bf Wed Mar 25 19:01:48 1998 Norbert Warmuth <k3190@fh-sw.de>
* extfs/hp48: Added an usage summary. The HP48 external filesystem was
contributed by Christofer Edvardsen <ce@earthling.net>.

* subshell.c (init_subshell): Added ':q' to $cwd in the precmd for
tcsh. It prevents command and filename substitution (e.g. for
a directory named "[word] words")

* view.c (view_done): Set monitor off before deleting the view
file dialog.
1998-03-26 06:05:44 +00:00
Miguel de Icaza
ac70e34d02 MC goes Internationallsls./gmc Spanish translation almost complete -mig 1998-03-25 05:16:00 +00:00
Pavel Machek
8665ccd219 Numerous OS/2 and NT fixes. Borland C++ for OS/2 supported 1998-03-23 05:27:15 +00:00
Pavel Machek
46e8d43127 Some files in /gnome was not copied on "make dist"
Warning in gnome/gmain.c suppressed
"VERSION." is included instead of "VERSION" for Borland C++, otherwise it assumes VERSION.h
Mouse is not enabled for Windows NT edition
Warning about missing hotlist was shown incorrectly on NT and Linux console
1998-03-17 21:29:22 +00:00
Miguel de Icaza
9d4987c84b Mon Mar 16 13:03:45 1998 Pavel Roskin <pavel@absolute.spb.su>
* cmd.c: Internal edit is used by default. vi may be
        confusing for some users.

	* tree.c: tree_rmdir_cmd() should not return any value,
        because it is not analyzed for errors.

	* main.c: NT code: use O_BINARY instead of _O_BINARY

	* util.c: DO not test for arguments that do not make sense under
	Windows NT.

	* file.c: utime.h always included for Windows NT port.

	* view.c: Events are flushed only if the ports supports it.


Lots of Windows/NT changes, but I will let Pavlov write the ChangeLog
entries.

Mon Mar 16 13:05:47 1998  Pavel Roskin <pavel@absolute.spb.su>

	* tkview.c: Include stdio.h;  Minor spelling corrections added.
1998-03-16 19:09:24 +00:00
Miguel de Icaza
791b34236c Wow! The file manager looks so slick!
Today:
	- New Menu layout!  Weeee!.
	- More mc commands exposed to the GNOME edition.
	- Use gnome stock pixmap buttons.
	- Use gnome stock for the menus.
	- Now it is possible to quit the program :-)
	- Various other bits.

If you can test it, I would appreciate it.

-Miguel.
1998-03-13 03:44:54 +00:00
Norbert Warmuth
6356184c04 Wed Mar 12 17:46:09 1998 Norbert Warmuth <k3190@fh-sw.de>
* screen.c (chdir_other_panel, chdir_to_readlink): Use passed
panel instead of cpanel (removed mixed use of panel and cpanel).

* main.c, screen.c: Deleted F13 from the default keymap, added F13
and F14 to the panel's keymap (the keymap for panels in listing
mode). These two keys are only useful for panels in listing mode.
It seems there are even more candidates for such a move. Especially
select_cmd and unselect_cmd which appeared recently for the GNOME
edition in screen.c act unexpected for panels in tree-mode.

* cmd.c (view_simple_cmd): Added WPanel* to the parameter list.

(edit_cmd_new): No need to get a panel because it is not used.

* panelize.c: Changed hotkey of the Panelize button (Alt-p is
already used by the input line history). I wonder if I should
change it in the find dialog, too (just to have a unique hotkey
for the panelize button).
1998-03-12 17:21:12 +00:00
Miguel de Icaza
d934dc4afe get_other_type works; sort order box works; rescan works; filter
is enabled; virtual fs setup dialog box is up; save setup; mkdir

link command is hossed.  It is more than hossed for some stoopid
reason, the thing is selecting the first file in the panel
just after I talked to it.  No matter how argumentative I get
with the code.  Have to fix next.

Commit the bits I forgot to commit yesterday.
-miguel.
1998-03-11 05:55:05 +00:00
Miguel de Icaza
4dd40872d9 1998-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtools.c (message): Added return NULL.  This needs to be fixed.
	(translate_gdk_keysym_to_curses): FIXME: Replace KEY_BACKTAB by '\t'
	while KEY_BACKTAB is added somewhere else.
	(translate_gdk_keysym_to_curses): return -1 as last resort.

	* glayout.c (get_current_index): Add g_assert_not_reached() for
	fatal case.

	* gmenu.c (menubar_new): Cast g_menubar to unsigned long.

	* gwidget.c (x_create_input): Cast entry to GTK_OBJECT.

	* gkey.c (find_select_closure_callback): Fix = -> == typo.

1998-03-10  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* xslint.c (getch): Added missing "return".

	* utilunix.c (init_groups): Added parentheses around
	assignment/truth value.

	* boxes.c: #include <stdlib.h>

	* screen.c (string_inode): Cast fe->buf.st_ino to long to be
	consistent with sprintf format.

	* main.c (handle_args): Added parentheses around assignment/truth value.
1998-03-10 21:10:30 +00:00
Miguel de Icaza
b52d3a73ca Sat Mar 7 14:33:38 1998 Pavel Roskin <pavel@absolute.spb.su>
* src/complete.c: obsolete hack for OS/2 and NT removed.
        Completion works for NT now (not very good)

        * src/main.c: HOME variable is respected by NT and OS/2
        versions. If it is missing, we use LIBDIR on OS2_NT and "/"
        on Unix.

        * src/key.h: SHIFT_PRESSED is set to 0x0010 on NT. This value
        doesn't conflict with definitions for ALT and CTRL, but it is
        SDK-compatible.

        * vfs/vfs.h: Minor changes for OS/2. EMX defines mkdir with
        2 arguments

        * vfs/tcputil,c, vfs/utilvfs.c: signal.h was includes twice.

        * vfs/Makefile.in: undelfs.h is not used and should disapper

        * slang/slos2tty.c: new file, copied from SLang-0.99.38,
        needed for OS/2 port

        * slang/Makefile.in: added slos2tty.c

        * vfs/extfs/README: annoying spell errors corrected

        * src/main.c: --termcap disabled for OS2_NT because it doesn't
        (and cannot) work. ARCH_FLAGS is not needed anymore.

        * src/text.c: most includes removed. Added a warning is someone
        compiles this file with HAVE_X. Improved color scheme for
        consoles with 16 background colors (e.g. OS/2). Hack for OS/2
        removed.

        * src/util.c, src/util.h: STRCOMP and MC_ARCH_FLAGS are moved
        to util.h. It may be useful to use them for filenames' completion
        on OS2_NT
1998-03-07 20:27:44 +00:00
Miguel de Icaza
566c79dc42 *** empty log message *** 1998-03-07 00:05:06 +00:00
Miguel de Icaza
644baf741f More drag and drop work; the desktop is usable in some areas now 1998-03-03 05:20:20 +00:00
Miguel de Icaza
eb6b3842ab Initial revision 1998-02-27 04:54:42 +00:00