Commit Graph

5869 Commits

Author SHA1 Message Date
Pavel Roskin 24384e9a89 * panel.h: Fix duplication between cpanel and current_panel in
favor of current_panel.  Ditto opanel and other_panel.
2003-10-26 06:45:59 +00:00
Pavel Roskin bb13ad8db4 * main.c (get_current_panel): Remove.
(get_other_panel): Move ...
* layout.c: ... here.
2003-10-26 06:32:42 +00:00
Pavel Roskin dca92d4941 Trivial cleanup. 2003-10-26 06:16:54 +00:00
Pavel Roskin 5b876f358d * info.h: Don't expose WInfo internals. 2003-10-26 05:54:55 +00:00
Pavel Roskin 26e444a11c * background.c (tell_parent): Eliminate.
(background_attention): Use error code instead.
* file.c (panel_operate): Exit with code 0, not 1.
2003-10-26 05:42:29 +00:00
Pavel Roskin 211ce16fac * wtools.c: Merge mc_message() and message() into one background
safe function message().  Fix all callers.
2003-10-26 04:47:20 +00:00
Pavel Roskin f9e5058942 Include global.h, not i18n.h. 2003-10-26 04:15:17 +00:00
Pavel Roskin 82688029da * i18n.h: Include into global.h.
* Makefile.am: Remove i18n.h.
2003-10-26 04:11:12 +00:00
Pavel Roskin d35cffb9d9 Clean up includes. 2003-10-26 04:03:07 +00:00
Pavel Roskin 2c458dcc52 Don't include vfs.h. 2003-10-26 03:40:23 +00:00
Pavel Roskin 7cc31809be * tar.h: Merge into tar.c, as it doesn't provide any external
interface.
* Makefile.am: Remove tar.h.
2003-10-26 03:34:42 +00:00
Pavel Roskin 565d65cc7a Suppress progress indicator from msgmerge.
Factorize "make distcheck".
2003-10-26 02:58:58 +00:00
Pavel Roskin a828849d50 * vfs.h: Remove redundant declaration of init_localfs(). 2003-10-26 01:51:28 +00:00
Pavel Roskin 06f9c3d0c1 Add:
Safe and restore file position in the viewer.
2003-10-26 01:34:47 +00:00
Pavel Roskin 189dadab90 Remove DVI test, it breaks on documentation in Russian on Debian/unstable. 2003-10-26 01:31:06 +00:00
Pavel Roskin 6f6534e721 Prepend \& to '\\ to avoid groff warning:
doc/ru/mc.1.in:2602: a magic token is not allowed in a name
2003-10-26 01:17:02 +00:00
Pavel Roskin 17dcf7ed78 Disable background support in minimal configuration. 2003-10-26 01:00:17 +00:00
Pavel Roskin a08f91eb63 * background.c: Clean up includes.
(do_background): Set current_dlg to NULL for the child process.
* dialog.h (do_complete_refresh): Don't use we_are_background.
* file.h: Remove dependency on background.h.
* background.h: Define we_are_background.  Move mc_message() ...
* wtools.h: ... here.
* key.h: Don't define we_are_background.
* slint.c (mc_refresh): Use current_dialog instead of
we_are_background to fix compilation without WITH_BACKGROUND.
2003-10-26 00:58:14 +00:00
Pavel Roskin 6cc1e873ef Fix missing comma in the last commit. 2003-10-25 23:48:30 +00:00
Pavel Roskin b59eaab4ad * extraconf.h: Don't define HAVE_GRANTPT forcedly if grantpt()
wasn't found.  Don't define HAVE_CRYPT, it's unused now.
2003-10-25 22:44:00 +00:00
Pavel Roskin 5a0b2b0806 * mcserv.c: Don't use HAVE_CRYPT from extraonf.h.
* samba/include/includes.h: Likewise.
2003-10-25 22:37:08 +00:00
Pavel Roskin 4a02cae0e1 * configure.in: Remove check for socketpair(). Add new option
--enable-background.
* extraconf.h: Don't define WITH_BACKGROUND.
2003-10-25 22:25:51 +00:00
Pavel Roskin ec7f14f929 * background.c (do_background): Use pipe() instead of less
portable socketpair().  Close comm[0] in the child.
2003-10-25 22:15:52 +00:00
Pavel Roskin d999b186f1 * wtools.c (mc_message): Fix argument expansion. 2003-10-25 22:13:01 +00:00
Pavel Roskin 00d12acfb3 * background.c: Leave only code used when WITH_BACKGROUND is
defined. The rest goes ...
* wtools.c: ... here.
2003-10-25 21:54:55 +00:00
Pavel Roskin 50045218ab Remove unneeded includes in ../src 2003-10-25 21:34:57 +00:00
Pavel Roskin 67e8519191 * background.c: Remove mymsg. 2003-10-25 21:15:54 +00:00
Pavel Roskin f75d4598eb * util.c (msglen): Constify first argument.
* wtools.c (query_dialog): Constify string argments.
(create_message): New function, forked from message().
(message): Return void.  Allocate memory dynamically.
* wtools.h: Eliminate D_INSERT.  Adjust all users.
2003-10-25 21:12:05 +00:00
Pavel Roskin 2d33b5047e * background.c: Replace all message stubs with a new function
mc_message().  Protect against strlen(MSG_ERROR).  Adjust all
dependencies.
2003-10-25 19:54:24 +00:00
Pavel Roskin 16123e0850 * hotlist.c (remove_from_hotlist): Fix improper check of the
return value - group could be deleted after pressing ESC.
2003-10-25 18:35:18 +00:00
Pavel Roskin 636d457a87 * background.c (background_attention): Unregister task before
calling message() to avoid recursion.
(message_3s): Fix the number of arguments.
2003-10-25 07:19:31 +00:00
Pavel Roskin 6da33f9c8c * command.c (enter): Don't change current_dlg to NULL. It
breaks repainting of the panels.  Simplify logic.
2003-10-25 04:55:51 +00:00
Pavel Roskin 8c10c20881 * key.c (init_key_x11): Warning fix for gcc 3.3.2. 2003-10-25 04:19:10 +00:00
Pavel Roskin 3c39e9cb55 * fs.h (compute_namelen): Fix warning about unused argument.
* man2hlp.c (handle_tp_ip): Likewise.
2003-10-25 03:44:13 +00:00
Pavel Roskin 3820d62ef4 Fixed syntax reression. 2003-10-25 00:43:15 +00:00
Pavel Roskin e752a07d35 Write "The Dialog manager and the Widgets" 2003-10-25 00:36:46 +00:00
Pavel Roskin 26328c7af6 * dialog.c (dlg_key_event): Simplify logic, return void. 2003-10-25 00:22:13 +00:00
Pavel Roskin db8db1268c * dialog.c: Remove duplication between two chains of dialogs.
* dialog.h (struct Dlg_head): Add "fullscreen" field, remove
"refresh_pushed", rename "previous_dialog" to "parent".
2003-10-24 23:57:18 +00:00
Pavel Roskin 52d81f57d7 * tree.h: Fix unneeded dependency on dialog.h.
* layout.h: Likewise.
2003-10-24 23:27:54 +00:00
Pavel Roskin 98950838b4 * dlg.h: Merge with ...
* dialog.h: ... this.  Adjust all dependencies.
* dlg.c: Merge with ...
* dialog.c: ... this.
* Makefile.am (SRCS): Remove dlg.h and dlg.c.
2003-10-24 23:20:30 +00:00
Pavel Roskin 0ee63c1450 * dlg.h: Declare idle_hook here. 2003-10-24 22:51:32 +00:00
Pavel Roskin 732da2fcd9 * dialog.c: Eliminate typedef Refresh, unneeded includes. 2003-10-24 22:31:56 +00:00
Pavel Roskin a8a7443e91 * complete.h: Move CompletionFunction definition ...
* complete.c: ... here.
2003-10-24 22:11:57 +00:00
Pavel Roskin 714f3ee8a7 * color.c (dealloc_color_pairs): Rename to ...
(done_colors): ... this.
* layout.c (done_screen): Call done_colors() here ...
* slint.c (slang_shutdown): ... but not here, as it's not S-Lang
specific.
2003-10-24 20:55:23 +00:00
Pavel Roskin b6d7cae6d2 * cmd.c: Remove source routing code.
* main.c: Likewise.
2003-10-24 20:10:01 +00:00
Pavel Roskin be3fa535ba * ftpfs.c: Remove the rest of source routing code.
* xdirentry.h: Likewise.
2003-10-24 20:08:38 +00:00
Pavel Roskin 79d3e0a85f * ftpfs.c (setup_source_route): Remove. It's a badly
implemented hack that was never enabled.
2003-10-24 19:03:27 +00:00
Pavel Roskin 7a5015a5d1 * screen.c (user_file_menu_cmd): Move ...
* cmd.c: ... here.
* cmd.h: Remove unused declarations.
2003-10-24 18:57:43 +00:00
Pavel Roskin 9c72f81a21 * chmod.c (stat_file): Eliminate. Use mc_stat().
* chmod.h: Remove unneded code.
* chown.h: Likewise.
* main.c: Include achown.h.
2003-10-24 18:38:02 +00:00
Pavel Roskin 82a7b75a7b * fileopctx.h: Define struct FileOpContext.
* background.h: Avoid conditional declarations.
2003-10-24 18:28:32 +00:00