Commit Graph

23 Commits

Author SHA1 Message Date
Andrew Borodin c7bde637f9 Tweak background operations support.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Slava Zanko 6621250292 Added events for handle parent_call_string() and parent_call()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:52 +02:00
Slava Zanko 6016620f42 Remove backlinks from lib to src - move global variables(used in lib) to mc_global structure (see lib/global.c)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:50 +02:00
Slava Zanko 1ff8b77f92 Code indentation in src directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:27:47 +03:00
Slava Zanko c2754de8aa Code indentation in src directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:27:46 +03:00
Alexander Moiseenko 936727622d Fixed problems:
* When try to replace existing file in background operation
  assertion raised (created operations for initialization ctx->ui for background):
  ** (mc:25716): CRITICAL **: file_progress_real_query_replace: assertion `ctx->ui != NULL' failed

 * Process has been already done, but still draw in list (C-x j)

 * Process is stopped or worked, remove operation don't hide process from list, but kill it

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 12:05:07 +02:00
Alexander Moiseenko 81f5b5e0b8 Ticket #1500: Segmentation fault while background copying
Test case:
 * create file with name "test" in "tmp" directory (for example)
 * create directory with same name ("test") in other "tmp2" directory (for example)
 * try to copy or move file "test" into "tmp2" in background mode
 * wait for some time

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 12:05:06 +02:00
Andrew Borodin 26852546b7 vfs/gc.c src/widget.c: removed unneeded #include's.
vfs/vfs-impl.h src/background.h src/charsets.c
src/esc.h src/file.h src/execute.c src/vfsdummy.h: fixed missed #include's.
src/cons.saver.c: include <config.h> unconditionally.
src/complete.c:: fixed #include's.
src/win.h src/win.c: removed unneeded #include's;
check_movement_keys(): fixed type of returned value.
2009-06-18 21:07:10 +04:00
Mikhail S. Pobolovets 758ab591d8 Simple doxygen description for files in src directory.
Mostly \file and \brief tag added.

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-10 16:07:59 +02:00
Roland Illig e792cffb8d * *.h: Renamed multiple inclusion guards that started with a
double underscore. Added #includes for dependent files.
	* popt.c: Likewise.
	* popthelp.c: Likewise.
	* tree.c: Moved a macro from tree.h to here, as it is useless
	outside tree.c.
2004-12-03 19:17:46 +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 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 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 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 82a7b75a7b * fileopctx.h: Define struct FileOpContext.
* background.h: Avoid conditional declarations.
2003-10-24 18:28:32 +00:00
Pavel Roskin 0a3cfe30c3 * background.h: Eliminate background_wait variable. Adjust all
dependencies.
2003-10-08 05:16:58 +00:00
Pavel Roskin 97af90af3c * background.h: Remove WITH_BACKGROUND, it's now in extraconf.h.
* background.c: Use WITH_BACKGROUND instead of USE_NETCODE.
2001-07-27 20:36:22 +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 bc5e0cd228 * background.h: Omit definitions that require FileOpContext if
fileopctx.h has not been included yet.
2001-05-14 23:28:29 +00:00
Pavel Roskin f6403d9972 * background.c (real_message_2s): Declare arguments "const" when
possible.
(real_message_3s): Likewise.
* wtools.c (message): Likewise.
* background.h: Change declarations to match.
* dialog.h: Likewise.
2001-05-14 22:50:28 +00:00
Andrew V. Samoilov 56aef8572f * background.c (real_message_1s, message_1s): third parameter is
used by message () as printf pattern, so "%s" has to be added
  if plain string must be shown but printf conversion
  specification(s) may be there.
* view.c (do_view_init): ditto
* user.c (debug_out): ditto
* utilunux.c (close_error_pipe, check_error_pipe): ditto

* background.[ch], vfs/util-alone.c (message_1s): third parameter
  constified
2001-05-14 19:01:20 +00:00
Miguel de Icaza e0faaa671f Merges from the FileOpContext-changes branch. Please see
the ChangeLogs for full information. - Federico
1999-01-14 01:10:32 +00:00
Miguel de Icaza eb6b3842ab Initial revision 1998-02-27 04:54:42 +00:00