Pavel Roskin
8040aeec39
* background.h: Correct condition when WITH_BACKGROUND is
...
defined.
* fsusage.c: Rearrange the includes. Define HAVE_QNX_MOUNT
for old QNX and use it instead of __QNX__.
* mountlist.c: Likewise.
* keyxdef.c: Define HAVE_QNX_KEYS for old QNX and use it instead
of __QNX__.
2001-06-19 19:57:58 +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
521a886013
* utilunix.c (init_my_statfs): Move this ...
...
* util.c (my_statfs): ... and this ...
* mountlist.c: ... here.
* util.h: Move mountlist-related declarations ...
* mountlist.h: ... here.
* info.c: Include mountlist.h.
2001-06-18 22:24:04 +00:00
Pavel Roskin
4bd227b376
Fix typo. Fix formatting in several places.
2001-06-18 15:16:54 +00:00
Pavel Roskin
05f1de349d
* hotlist.c (init_movelist): Don't assume English word ordering
...
in the title.
2001-06-17 04:33:33 +00:00
Andrew V. Samoilov
44dd616cce
* wtools.c (message): Possible buffer overflow fixed.
...
(query_callback) [HAVE_X]: Disable more code.
(listbox_refresh) [!HAVE_X]: Became a macro.
* hotlist.c (init_i18n_stuff): Mark cancel_but for translation.
* tree.c (tree_copy, tree_move): Possible memory leaking fixed.
(tree_keymap): Constified.
2001-06-16 07:46:42 +00:00
Andrew V. Samoilov
abc861e48f
* tree.c (tree_copy, tree_move): Possible memory leaking fixed.
...
(tree_keymap): Constified.
2001-06-16 07:40:03 +00:00
Andrew V. Samoilov
c45f39a7e4
* wtools.c (message): Possibly buffer overflow fixed.
...
(query_callback) [HAVE_X]: Disable more code.
(listbox_refresh) [!HAVE_X]: Became a macro.
2001-06-16 06:17:28 +00:00
Andrew V. Samoilov
df436f8163
* hotlist.c (init_i18n_stuff): Mark cancel_but for translation.
2001-06-16 06:11:28 +00:00
Pavel Roskin
b4669a6baa
* panelize.c: Define DIR_H_INCLUDE_HANDLE_DIRENT earlier, since
...
the GNOME edition includes dir.h from other headers.
2001-06-16 00:09:00 +00:00
Pavel Roskin
7205d0210c
* background.c: Include "x.h".
...
* panelize.c: Likewise.
* treestore.c: Likewise.
* user.c: Likewise.
* util.c: Likewise.
* command.c: Reorder includes. Include "x.h".
* complete.c: Likewise.
* find.c: Likewise.
* user.h: Declare user_menu_cmd() inconditionally.
* i18n.h [GAVE_GNOME]: Remove code that is now in x.h.
2001-06-15 23:37:59 +00:00
Pavel Roskin
0bf95fdacc
* tty.h [HAVE_X]: Define beep() to gdk_beep().
2001-06-15 07:04:50 +00:00
Pavel Roskin
a06415a371
* xtty.h: Remove, move contents ...
...
* tty.h: ... here.
[HAVE_X]: Define attrset(), mc_refresh(), enable_interrupt_key()
and disable_interrupt_key(). Don't declare mc_refresh().
* view.c: Use braces around widget_move() since it's empty in
the GNOME edition.
* xslint.c: Eliminate attrset() and mc_refresh().
* Makefile.in: Remove xtty.h.
2001-06-15 00:24:14 +00:00
Pavel Roskin
8c1534e4e6
* cons.handler.c (handle_console): Remove useless default.
...
* ext.c (regex_command): Initialize include_target_len.
* find.c [HAVE_GNOME]: Eliminate untyped declarations.
* fsusage.c: Remove untyped declaration of statfs().
[_AIX && _I386]: Rename statfs to aix_statfs and move
it before get_fs_usage(). Define statfs to aix_statfs.
2001-06-14 23:28:54 +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
c2c3918eb3
* main.h: Fix prototype of exec_shell.
...
* tree.c: Make all functions static when possible.
* tree.h: Changes for the above.
2001-06-14 21:21:25 +00:00
Pavel Roskin
b504500f49
* text.c [HAVE_X]: Remove useless #error.
...
* cons.saver.c: Indent #error to hide it from old compilers.
2001-06-14 15:59:52 +00:00
Pavel Roskin
ff84fd632e
* screen.c (display_mini_info): Avoid nested i18n calls.
...
(parse_panel_size): Warning fix.
* user.c [HAVE_X]: Warning fix.
(check_format_var): Avoid nested i18n calls. Improve messages.
2001-06-13 22:12:04 +00:00
Pavel Roskin
c2f8f8d935
* screen.c (user_file_menu_cmd) [HAVE_X]: Disable.
...
(panel_callback) [HAVE_X]: Don't define labels, they are unused.
* user.c [HAVE_X]: Disable all user meny code.
2001-06-13 16:51:15 +00:00
Pavel Roskin
869afff53c
* color.c (color_table): Make static. Only use in text edition.
...
* xtty.h: Remove unused definitions.
2001-06-13 07:19:48 +00:00
Pavel Roskin
c603d50193
* slint.c (slang_init): Check screen dimensions and exit if they
...
are abnormal. This may happen due to a S-Lang bug when the TERM
is set to a value not listed in termcap or terminfo.
2001-06-13 06:53:08 +00:00
Pavel Roskin
212444523c
* boxes.c [HAVE_CHARSET]: Localize more strings. Lay out the
...
encoding dialog using the translated title length. Remove
useless preprocessor directives.
From David Martin <dmartina@excite.es>
2001-06-12 18:55:48 +00:00
Andrew V. Samoilov
3f801e3e37
* selcodepage.c (do_select_codepage): Fix compilation.
2001-06-11 12:11:06 +00:00
Andrew V. Samoilov
17791c512b
* dlg.[ch] (x_set_dialog_title): title constified.
...
(create_dlg): Use g_new0 instead of g_new.
2001-06-11 11:25:25 +00:00
Pavel Roskin
89efd201ca
Give credit to Andrew V. Samoilov for the last patch.
2001-06-09 07:24:50 +00:00
Pavel Roskin
58d8979490
* util.c (load_mc_home_file): New function. Load file from
...
mc_home, but try localized version of that file first.
* util.h: Declare load_mc_home_file().
* help.c (interactive_display): Use load_mc_home_file(). If the
first argument is NULL assume mc.hlp.
* dlg.c (dialog_handle_key): Use interactive_display() without
specifying the help file.
* tree.c (tree_copy): Likewise.
* cmd.c (help_cmd): Likewise.
(get_random_hint): Use load_mc_home_file().
2001-06-09 07:13:46 +00:00
Andrew V. Samoilov
46e9007ea3
* charsets.h: Define CHARSETS_INDEX without leading LIBDIR.
...
* charsets.c (translate_character): Warning fix.
(init_translation_table): Don't deal with printable.
This one is initialized by init_printable_table ().
(load_codepages_list): Use CHARSETS_INDEX.
* selcodepage.c (do_select_codepage): Messages marked for i18n.
* setup.c (load_setup): Eliminate errbuf. Fix error message.
2001-06-07 22:36:45 +00:00
Pavel Roskin
e7f81bb092
* setup.c (load_setup): Call init_printable_table() and
...
init_translation_table() regardless of other failures.
2001-06-07 20:47:36 +00:00
Pavel Roskin
d3b2663c2e
* charsets.c (get_codepage_index): Warning fix.
...
(init_printable_table): New function.
* charsets.h: Declare init_printable_table().
* setup.c (load_setup): Uncomment init_printable_table().
2001-06-07 20:04:03 +00:00
Pavel Roskin
c4c5f40a87
* cons.saver.c: Make all functions except main() static.
...
* mfmt.c (omain): Remove, it's unused.
2001-06-07 19:28:03 +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
Pavel Roskin
bcfea1e371
* file.c: Add comments after every endif.
...
[HAVE_GNOME] [!WITH_BACKGROUND]: Fix compilation.
2001-06-06 16:32:31 +00:00
Andrew V. Samoilov
d1ebd015ce
* boxes.c (sel_charset_button): Eliminate C++ comment.
...
(new_display_codepage): Made static.
(display_bits_box): Use "%s" for plain string in message.
2001-06-06 13:46:24 +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
d34b0fde60
* selcodepage.c (do_select_codepage): New function.
...
* selcodepage.h: Declare it.
From Walery Studennikov <hqsoftware@mail.ru>.
2001-06-05 22:28:11 +00:00
Pavel Roskin
0e46f60810
* mfmt.c (omain): Warning fix.
2001-06-05 22:21:42 +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
7b340a2af9
* achown.c: Make global variables static if possible. Remove now
...
useless preprocessor directives, since this file is now used in
the text edition only.
* boxes.c: Remove useless ifdefs.
[USE_VFS]: Don't undef USE_NETCODE - it's done in extraconf.h.
* cmd.c [USE_VFS]: Don't undef USE_NETCODE.
* chmod.c: Remove useless ifdefs.
* filegui.c: Likewise.
* hotlist.c: Likewise.
* info.c: Likewise.
* layout.c: Likewise.
* listmode.c: Likewise.
* option.c: Likewise.
* subshell.c: Likewise.
* help.c: Remove useless ifdefs. Make global variables static if
possible.
* key.c: Likewise.
* learn.c: Likewise.
2001-06-05 16:41:44 +00:00
Andrew V. Samoilov
2c2744b763
* charsets.c (load_codepages_list): Lines in mc.charset beginning
...
with a # are comments. Use "default character_set_name" in mc.charset
to set default codepage for your system.
(xstrncpy): Eliminate.
2001-06-05 01:00:26 +00:00
Pavel Roskin
4018a4bb6d
* cmd.c (edit_symlink_cmd) [!HAVE_GNOME]: Warn if the current
...
selection is not a symbolic link.
2001-06-04 20:57:37 +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
b66d2fec72
* view.c [HAVE_X]: Define is_idle() to 1. Warning fix.
2001-06-02 01:01:30 +00:00
Pavel Roskin
67a118915d
* file.c (copy_file_file): Initialize src_uid, src_gid, src_mode
...
and file_size to avoid a warning.
2001-06-02 00:00:51 +00:00
Pavel Roskin
0866d8c3e0
* charsets.c: Include config.h before everything else.
...
* selcodepage.c: Likewise.
2001-05-31 23:56:27 +00:00
Pavel Roskin
9c545b2e8f
* textconf.c (features): Use longer strings to avoid enforcing
...
english word ordering on the translations. Capitalize sentences.
From Walery Studennikov: Indicate charset support.
(version): Use fputs, not fprintf.
2001-05-31 23:22:06 +00:00
Pavel Roskin
b75b12b34d
* Makefile.in: Add charsets.c, charsets.h, selcodepage.c and
...
selcodepage.h. Compile them if the charset support is enabled.
Distribute them always.
2001-05-31 22:45:28 +00:00
Pavel Roskin
e72a150ac9
* charsets.c: New file for charset conversion support.
...
From Walery Studennikov.
* charsets.h: Likewise.
* selcodepage.c: Likewise.
* selcodepage.h: Likewise.
2001-05-31 01:27:20 +00:00
Pavel Roskin
540cccc4d6
* layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 0 if
...
possible to prevent ncurses from waiting after escape.
2001-05-30 15:05:07 +00:00