Commit Graph

30 Commits

Author SHA1 Message Date
Pavel Roskin f1cec8dc2d * help.h: Replace CHAR_BOLD_ON, CHAR_BOLD_OFF and CHAR_ITALIC_ON
with  CHAR_FONT_BOLD, CHAR_FONT_NORMAL and CHAR_FONT_ITALIC
respectively for better consistency.
2002-09-22 16:40:33 +00:00
Pavel Roskin ec1b1f9614 Globally replace OS2_NT and _OS_NT with WIN32_NATIVE. 2002-09-10 22:04:11 +00:00
Pavel Roskin 63a2d3dceb Compile fix. 2002-09-05 06:55:50 +00:00
Pavel Roskin b248f6bb32 * help.c (help_handle_key): Sanity check for broken help files.
From David Martin <dmartina@excite.com>
2002-09-05 06:51:46 +00:00
Pavel Roskin 00baa9f8fe * help.c (interactive_display): Fallback to node "[main]" if the
requested node cannot be found.
2002-09-03 07:22:23 +00:00
Pavel Roskin afae5939cd * help.c (help_index_cmd): Eliminate unneeded search for
"[Help]", which always fails.  Fix crash if "[Contents]" cannot
be found.  Reuse more generic error message.
2002-09-03 07:15:01 +00:00
Pavel Roskin 52caab36b8 * filegui.c: Eliminate x_set_dialog_title().
* hotlist.c: Likewise.
* help.c: Likewise.
(interactive_display): Default to node "[main]" if the given
node is empty.
2002-09-03 06:53:11 +00:00
Pavel Roskin 43509ea980 * help.c (help_callback): Use common_dialog_callback().
(interactive_display): Set dialog title.
2002-09-02 07:48:01 +00:00
Pavel Roskin 03e1f0638e * help.c (interactive_display): Don't reuse the old value of
help_lines - LINES could have changed.  Scale height better for
terminals with many lines - use 2/3 of the full screen.
2002-09-02 02:40:22 +00:00
Pavel Roskin 74c4b19546 * help.c (show): Fix segfault on unterminated help files.
From David Martin <dmartina@excite.com>
2002-08-31 14:20:14 +00:00
Pavel Roskin 8aa61fffa3 * dlg.h (struct Dlg_head): Fold fields "raw" and "has_menubar"
into one field "flags".  Adjust all dependencies.  Add new flag
DLG_COMPACT.
* wtools.c (dialog_repaint): Draw frame without spaces if
DLG_COMPACT flag is set.
* complete.c (complete_engine): Set DLG_COMPACT.
(query_callback): Use common_dialog_repaint().
2002-08-22 15:34:25 +00:00
Pavel Roskin 1f423be341 * help.c (interactive_display): Always show button bar. 2002-08-21 23:02:19 +00:00
Pavel Roskin e29d69423a * help.c (help_follow_link): Made static. 2002-08-19 05:00:58 +00:00
Andrew V. Samoilov fe2fdc4057 * help.c (show): Cast *paint_start to unsigned char to display
Cyryllic with ncurses.
[HAS_ACS_AS_PCCHARS] (acs2pc_table): Make const.
2002-08-16 09:07:20 +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 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 689c3fb9ac Replace "Can't" with "Cannot" everywhere. 2001-08-14 00:55:34 +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
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
Pavel Roskin 5f8add985b * TODO: Remove Tk-related entries.
* boxes.c [HAVE_TK]: Remove. Don't need INPUT_INDEX anymore.
* screen.c [HAVE_TK]: Remove.
(panel_event): Made static.
* chmod.c [HAVE_TK]: Remove.
* cmd.c [HAVE_TK]: Likewise.
* help.c [HAVE_TK]: Likewise.
* hotlist.c [HAVE_TK]: Likewise.
* info.c [HAVE_TK]: Likewise.
* view.c [HAVE_TK]: Likewise.
* view.h [HAVE_TK]: Likewise.
* widget.c [HAVE_TK]: Likewise.
* wtools.c [HAVE_TK]: Likewise.
2001-05-18 17:44:02 +00:00
Pavel Roskin e828211662 Updated address of Free Software Foundation 2000-08-22 22:50:00 +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
Miguel de Icaza a7170a4f7a OS2 now uses property defines instead of OS2_NT 1999-01-10 08:55:35 +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
Pavel Roskin 4fbed2f65e Minor fixes to avoid compiler errors. "main" renamed to "main_node" everywhere 1998-09-22 13:06:59 +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 b8da58830e Numerous patches for OS/2 and Windows NT. lstat detects executables
(stat is broken in Borland C). Help looks better.
1998-03-23 23:06:36 +00:00
Miguel de Icaza ade5223b23 Viewer is nicer; Viewer is gnome-app; Viewer gets lots of options; Code gets cleaned -miguel 1998-03-14 00:42:23 +00:00
Miguel de Icaza eb6b3842ab Initial revision 1998-02-27 04:54:42 +00:00