Pavel Roskin
62ef1f47bd
* hotlist.c: Add comments to avoid confusion between
...
done_hotlist() and hotlist_done().
(hotlist_done): Set l_hotlist to NULL.
(add2hotlist): Load hotlist if it's neither loaded nor loading.
This fixes Ctrl-x h. Fix compiler warning.
2001-07-09 06:43:45 +00:00
Pavel Roskin
48b3cb4154
* hotlist.c: Make more variables and functions static.
2001-07-09 05:54:58 +00:00
Pavel Roskin
3f25e54361
* ext.c (exec_extension) [HAVE_X]: Free file_name. Add comment
...
explaining why it cannot be unlinked there.
2001-07-08 21:34:55 +00:00
Pavel Roskin
4f992c2fd3
Typo in the last commit.
2001-07-06 23:07:22 +00:00
Pavel Roskin
7a177fd8d5
* view.c (exec_extension): Unlink temporary file earlier if it's
...
not going to be used.
[OLD_CODE]: Remove.
2001-07-06 23:06:45 +00:00
Pavel Roskin
a08a62bef3
* Makefile.in: Use additional quotes to preserve @prefix@ when
...
Makefile is generated.
2001-07-06 21:05:24 +00:00
Pavel Roskin
e09c2cba92
* Makefile.in: Don't use SEDCMD2, use sed.
2001-07-06 20:45:30 +00:00
Pavel Roskin
91a799e3c0
* cons.saver.c: New variable console_minor. Eliminate variables
...
len and vcs_name.
(check_file): Set console_minor to the minor device number of
the console. Disallow /dev/tty0.
(detect_console): Don't parse tty_name, instead make sure that
it corresponds to console_minor. Check console first. Fallback
to /dev/vcc/a* if /dev/vcsa* cannot be opened.
(save_console): Use console_minor.
(restore_console): Likewise.
2001-07-06 19:24:27 +00:00
Pavel Roskin
a44f9422d2
* cons.saver.c (check_file): Eliminate using text messages to
...
indicate errors. Improve debug messages.
(detect_console): Likewise.
(main): Adjust call to detect_console.
2001-07-06 17:49:27 +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
a5281c3ee4
* util.c (size_trunc_len): New function - print file size to
...
a buffer of limited length.
* util.h: Declare size_trunc_len().
* screen.c (string_file_size): Use size_trunc_len().
2001-06-28 04:17:28 +00:00
Pavel Roskin
4f10e883fd
* xslint.c: Remove.
...
* Makefile.in (SRCS): Remove xslint.c.
2001-06-26 15:03:30 +00:00
Pavel Roskin
c83fdc336c
* key.c (ctrl_pressed): Don't limit functionality to Linux.
...
* screen.c (prev_page_key): Don't require console_flag to be set
to use ctrl_pressed(), only require that HAVE_X is undefined.
(next_page_key): Likewise.
* widget.c (key_left): Don't limit functionality to Linux.
(key_right): Likewise.
2001-06-26 03:20:22 +00:00
Pavel Roskin
29adaeacbf
* main.h: Use "ifdef HAVE_GNOME", not "if HAVE_GNOME". Fix the
...
order of conditionals and put comments on endifs.
2001-06-25 21:36:38 +00:00
Andrew V. Samoilov
5cccebee91
* complete.c (filename_completion_function): Clean it up.
...
(command_completion_function): Make words, bash_reserved and
bash_builtins const, use concat_dir_and_file.
(fetch_hosts): Fix typo, style fixes.
2001-06-25 13:59:04 +00:00
Andrew V. Samoilov
b817d61e79
;)
2001-06-25 12:06:23 +00:00
Andrew V. Samoilov
e92976c937
* view.c [HAVE_CHARSET]: Include selcodepage.h.
...
(view_new): Use g_new0.
(ruler): Make static.
2001-06-25 11:24:49 +00:00
Pavel Roskin
0e334b67e8
* mem.h: Undefine bcopy(), bcmp() and bzero() before redefining
...
them.
2001-06-23 16:02:05 +00:00
Pavel Roskin
975726afd0
* ext.c (exec_extension) [HAVE_X]: Disable console handling.
2001-06-23 00:09:13 +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
2ba50c0365
* fsusage.c: Use HAVE_INFOMOUNT.
...
* mountlist.c: Likewise. Fix condition when mount_list is
declared.
(fstype_to_string): Rename mount_list to mlist to avoid
confusion with the file-scoped static variable.
2001-06-22 16:53:34 +00:00
Pavel Roskin
6ba78b2f80
s/HAVE_PARAM_H/HAVE_SYS_PARAM_H/
2001-06-22 15:56:59 +00:00
Pavel Roskin
c27d9c8cc5
* cmd.c [HAVE_X]: Disable more code. Reorder includes.
2001-06-22 15:40:12 +00:00
Pavel Roskin
b3339f9281
* main.c: Remove MenuBarEmpty. From Andrew V. Samoilov.
2001-06-20 17:15:41 +00:00
Pavel Roskin
1636c8ef6b
* wtools.c [HAVE_X]: Disable quick dialog routines.
2001-06-20 17:12:47 +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
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