Pavel Roskin
0a4aa53f65
* cmd.c: Clean up unused GNOME code and some ifdef's.
...
* dlg.c: Likewise.
* dlg.h: Likewise.
* ext.c: Likewise.
* setup.c: Likewise.
2001-09-16 00:53:43 +00:00
Pavel Roskin
7fe30fff07
* cmd.c (guess_message_value): Remove the argument. Adjust all
...
callers.
2001-09-16 00:18:39 +00:00
Pavel Roskin
e94ec737ad
* textconf.c (features): Remove "edition", minor fixes.
...
(version): Don't report the current locale - it's meaningless,
especially if ENABLE_NLS is not defined.
2001-09-16 00:07:59 +00:00
Pavel Roskin
7e69c250a5
* textconf.h: Remove status_using_ncurses - it's useless now.
...
Adjust all users. Call do_exit_ca_mode() and do_enter_ca_mode()
even with ncurses.
2001-09-15 23:44:43 +00:00
Pavel Roskin
aa50585937
* main.c (init_xterm_support): Don't enable xterm_flag just
...
because of "kmous" in terminfo. Setiing this flag means much
more than just mouse support. Recognize terminals beginning
with "rxvt" and set xterm_flag for them.
2001-09-15 22:59:34 +00:00
Pavel Roskin
e65a82ed06
* cmd.c (view_other_cmd): Don't check use_mouse_p before calling
...
init_mouse() and shut_mouse(), since those functions decide
themselves what to do.
* layout.c (done_screen): Likewise.
* main.c (setup_mc): Likewise.
* text.c (edition_post_exec): Likewise.
(edition_pre_exec): Likewise.
2001-09-15 21:34:42 +00:00
Pavel Roskin
b54b1e491c
* user.h: Fix location of the home editor menu.
...
Reported by David Martin <dmartina@excite.es>
2001-09-15 18:56:58 +00:00
Pavel Roskin
3051dba20b
* mouse.h: Export xmouse_seq.
...
* mouse.c (init_mouse): Use xmouse_seq instead of hardcoded
xterm mouse sequence.
* main.c (setup_post): Join with setup_mc().
(init_xterm_support): New function. Check mouse capability.
(OS_Setup): Remove parts that are now in init_xterm_support().
2001-09-15 16:54:40 +00:00
Pavel Roskin
7efdf3527d
* key.c (get_event): Recognize KEY_MOUSE, not just MCKEY_MOUSE.
...
* mouse.c: Don't use or emulate keyok(), since MC understands
KEY_MOUSE now.
2001-09-15 01:18:11 +00:00
Pavel Roskin
a100142753
* cmd.c (check_for_default): Make accessible from other files.
...
* cmd.h: Declare check_for_default().
2001-09-11 21:38:59 +00:00
Pavel Roskin
13e92aca94
* layout.c: Use HAVE_TERMIOS_H and HAVE_SYS_IOCTL_H more
...
consistently.
* mouse.c: Likewise.
* subshell.c: Likewise.
* win.c: Likewise.
* util.c: Remove unused includes.
2001-09-11 02:18:02 +00:00
Pavel Roskin
0883a31c10
* Makefile.am (mc_LDADD): Don't use LSLANG and LGPM, since they
...
are now included into MCLIBS.
2001-09-10 22:00:25 +00:00
Pavel Roskin
c69f80cc61
* Makefile.am (mc_LDADD): Use INTLLIBS provided by gettext
...
instead of LINTL.
2001-09-10 20:08:28 +00:00
Pavel Roskin
192d6c1853
* hotlist.c (load_hotlist): If cannot open hotlist, don't assume
...
that it needs to be migrated and don't warn the user.
2001-09-09 05:46:44 +00:00
Pavel Roskin
e136f3b7b3
* Makefile.am: Fix definitions of CONFDIR and LOCALEDIR.
2001-09-09 01:50:00 +00:00
Pavel Roskin
a16f742216
* subshell.c: Move definitions of WEXITSTATUS and WIFEXITED
...
below all includes so that they can be defined elsewhere.
2001-09-08 05:36:23 +00:00
Pavel Roskin
b52bd06f04
* myslang.h: Specify arguments to function-like macros or remove
...
them if they are unused.
2001-09-08 04:37:19 +00:00
Pavel Roskin
92565a30ba
* main.c: Remove old debugging code. Remove external function
...
declarations.
(menu_bar_event): Remove, it's unused.
* main.h: Declare get_mc_lib_dir() and force_ugly_line_drawing.
* layout.c: Remove all external declarations.
2001-09-08 04:06:03 +00:00
Pavel Roskin
bd5f3b08ae
* main.c (main): Call save_stop_handler() - it was ifdef'd out
...
by error.
2001-09-07 22:37:46 +00:00
Pavel Roskin
482e115e3b
* main.c: Remove all GNOME code.
2001-09-07 21:15:04 +00:00
Pavel Roskin
89dc0964cb
* cmd.c: No need to define "MIDNIGHT" before including vfs.h.
2001-09-07 20:15:14 +00:00
Pavel Roskin
4895273a57
* user.h: Remove all dirty tricks with "MIDNIGHT" - they are not
...
needed anymore.
2001-09-07 19:54:15 +00:00
Pavel Roskin
c11389facb
* global.h: Include io.h, pwd.h, grp.h and utime.h. Adjust all
...
sources not to include them and to include global.h at the right
place.
2001-09-07 17:52:19 +00:00
Pavel Roskin
dbe20dc6c8
* global.h: Include all time-related system includes, since
...
it's non-trivial (order, conflicts) and is better handled in one
place.
2001-09-07 16:46:31 +00:00
Pavel Roskin
013466a02e
* fsusage.c: Include sys/param.h before sys/mount.h - it's
...
required on some systems.
* mountlist.c: Likewise.
From Timur Bakeyev <mc@bat.ru>
2001-09-07 02:40:45 +00:00
Pavel Roskin
5e9bd8980e
* Makefile.am: Don't use substituted values directly. Define
...
CHARSET_SRC unconditionally. Join SRCS and HDRS.
2001-09-04 06:09:05 +00:00
Pavel Roskin
e840cff0dc
* widget.c (label_new): Don't calculate dimensions of multiline
...
labels, since they cannot be changed and msglen() is already
used when the dialog is created.
2001-09-03 15:17:27 +00:00
Pavel Roskin
ed2306822f
* Makefile.in: Converted to ...
...
* Makefile.am: ... this.
2001-09-03 07:03:46 +00:00
Pavel Roskin
44e9896171
* slint.c: Make more data and function static.
...
* key.h: Remove declarations that are now static.
* myslang.h: Likewise.
2001-09-03 05:55:22 +00:00
Pavel Roskin
a8ef641beb
* x.h: Remove. Adjust all users. Make sure that global.h is
...
included instead. Don't include sys/param.h unconditionally -
rely on global.h taking care of it.
* Makefile.in: Remove x.h.
2001-09-03 05:07:40 +00:00
Pavel Roskin
83c37cfd0f
* color.c: Remove unused code.
...
* color.h: Likewise.
2001-09-03 04:32:16 +00:00
Pavel Roskin
ff7a2a0ceb
* key.c: Remove support for BUGGY_CURSES.
2001-09-03 03:12:22 +00:00
Pavel Roskin
f3a84ebc1a
* tty.h: Remove support for old curses and GNOME.
...
* global.h: Likewise.
2001-09-03 03:07:46 +00:00
Pavel Roskin
fc6efa62f9
* widget.c (label_new): Set initial width of the widget based on
...
the initial text.
2001-09-03 01:15:07 +00:00
Pavel Roskin
2ee372d4a8
* view.c (hex_search): Don't use sscanf() to search for quoted
...
strings - use strchr instead.
2001-09-02 20:34:44 +00:00
Pavel Roskin
6f8323907f
Trimmed using last chtrim. Ensure exactly 2 spaces before e-mail.
2001-09-01 20:12:16 +00:00
Timur Bakeyev
043e782496
2001-08-31 23:14:21 Timur Bakeyev <mc@bat.ru>
...
* utilunix.c: init_groups(), destroy_groups(), get_user_permissions()
rewritten to use GTree structure and functions. Add new static helper
functions mc_gid_compare() and mc_gid_destroy().
* util.h: Removed deprecated structure user_in_groups.
* screen.c: Fixed typo in format report error string.
2001-08-31 23:14:21 Timur Bakeyev <mc@bat.ru>
* utilunix.c: get_user_rights() renamed into get_user_permissions().
delete_groups() renamed into destroy_groups().
* util.h: Likewise.
* screen.c: Likewise.
* main.c: Likewise.
2001-09-01 13:47:34 +00:00
Pavel Roskin
f2547b3cbd
* cmd.c (dirsizes_cmd): Don't cast st_size to long - use off_t
...
instead, since off_t can be longer.
Reported by Radovan Bukoci <rado@autoparts.sk>
2001-09-01 07:51:14 +00:00
Pavel Roskin
28ed7f82c0
* info.c (info_show_info): Use size_trunc_len() instead of
...
print_bytesize(). Don't assume English word ordering. Add
singular message when single block.
* win.c (print_bytesize): Remove.
(sprint_bytesize): Remove.
* win.h: Remove print_bytesize() and sprint_bytesize().
2001-08-30 16:58:40 +00:00
Pavel Roskin
1ef25591d2
* util.c (size_trunc_len): Add units parameter. Change all
...
callers.
2001-08-30 16:41:08 +00:00
Pavel Roskin
242a26c03b
* util.c (size_trunc_len): Print size values with some (little)
...
sense for tiny and even wee lengths (i.e. squeezed X terminals).
2001-08-30 16:19:45 +00:00
Pavel Roskin
54b219ebb6
* info.c (info_show_info): Move comment line just before
...
translatable message so it's shown in .po files to alert
translators. The message (translated) is used to set the start
column (so the available width) for some "truncatable" strings.
2001-08-30 15:14:39 +00:00
Pavel Roskin
596869e68a
* key.c (learn_key): Turn off keypad to disable intepreting keys
...
by ncurses.
Reported by Frederic L. W. Meunier <fredlwm@pervalidus.net>
2001-08-27 21:24:29 +00:00
Pavel Roskin
511a88a5bf
* xcurses.c: Remove.
...
* Makefile.in: Remove all references to xcurses.c.
2001-08-26 08:56:29 +00:00
Pavel Roskin
4bbb7fd935
* user.h: Include "../edit/edit-widget.h", not
...
"../gtkedit/edit-widget.h".
2001-08-24 18:24:46 +00:00
Pavel Roskin
9466c031d8
* subshell.c: Use standard Autoconf symbols to determine whether
...
to include <stropts.h> and <grp.h>.
2001-08-24 04:51:11 +00:00
Pavel Roskin
7dbf6695ff
* subshell.c (feed_subshell): Don't wait forever after the first
...
select() call if fail_on_error is true. This alleviates hang
with zsh on QNX Neutrino.
2001-08-24 02:17:15 +00:00
Pavel Roskin
bca1e47369
* view.h: Declare view_dlg.
...
* main.h: Declare edit_dlg.
* layout.c (change_screen_size): Remove external declarations
inside the function.
2001-08-21 06:32:41 +00:00
Pavel Roskin
19437f2557
* view.c (load_view_file) [!HAVE_MMAP]: Warning fix.
2001-08-20 07:46:04 +00:00
Pavel Roskin
d56dd815b1
* main.c (mc_maybe_editor_or_viewer) [!USE_INTERNAL_EDIT]:
...
Reenable to make "mc -v" possible.
(do_nc): Call mc_maybe_editor_or_viewer() even if the editor
is not compiled in.
(argument_table) [!USE_INTERNAL_EDIT]: Disable "-e".
2001-08-20 05:39:21 +00:00