When SIGINT signal is raised, the CK_Cancel message is handled by
dlg_execute_cmd() and midnight_dlg is closed.
The solution: CK_Cancel is sent to current dialog via callback, and if
current dialog doesn't handle CK_Cancel message, then handle it with common
way using dlg_execute_cmd().
Since Ctrl-g is used to generate SIGINT in MC, remove this shortcut from
all sections of keymaps except the [dialog] section.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Don't install man pages, help and hint files if mc is built with
--disable-nls key.
Thanks Max Khon <fjoe samodelkin net> for the original patch.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2495_show_addition_info_about_paths:
Describe new command line options (-F and --configure-options) in English and Russian man pages.
Added --configure-options for easy update & reconfigure existing mc.
Ticket #2495 (addition info about paths)
Added -F option (AKA --datadir-info) for show extended information about used data dirs
display info about default used paths by 'mc -V'
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Added support of skip all failures on file/dir operations.
Original patch was created by me <me 0xn0 de> and modified by Thomas
Zajic <zlatko gmx at>.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
cd to "~" or "~" with subdirs may fail when issued from the in the command
line if more than one space is separating the "cd" and "~". So, "cd<one space>~" works,
but "cd<multiple spaces>~" fails.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
some fixes
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 2501_split_lib: (25 commits)
Added test for checking if library is independ to $(topsrcdir)/src
Added configure parameter --enable-mclib for build own shared library
update .gitignore for src/vfs/extfs/helpers/
configure.ac: Moved GLib initialization to m4.include/ac-glib.m4
Added manual for events (Russian and English).
Lib: removed includes to "src" directory
Added events for handle parent_call_string() and parent_call()
Use events for suspend mc (by pressing on CTRL+Z)
Moved mc_refresh() to lib/widget
Use events for calling help window
Use events for operate with clipboard (copy/paste to external clipboard, save/load to file)
Use events for update panels
Moved input_map, listbox_map and dialog_map variables to 'lib' subdirectory.
src/background.c: added some forgotten va_end() calls
Move check_for_default() function from lib/util.c to src/util.c
Moved initialization of mc_global.share_data_dir and mc_global.sysconf_dir to library
Move src/filemanager/complete.c to lib/widget/input_complete.c
Use events to show VFS messages.
Removed mc_main_error_quark() function
Use events to check timestamp of panel directories
...
...instead of direct access to panels in VGS GC.
Inlcudes clean up.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* moved from lib/vfs/mc-vfs to lib/vfs;
* split by directories for VFS-plugins and moved to src/vfs;
* lib/vfs/vfs-impl.h was merged into lib/vfs/vfs.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Example:
gboolean mkdir_callback(const gchar *event_group, const gchar *event_name, gpointer init_data, gpointer event_data)
{
... /* some action for handle event */
return TRUE; /* got chance to run other callbacks for this event or */
return FALSE; /* break execution for other callbacks */
}
mc_event_add ("filesystem", "mkdir", mkdir_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", mkdir_log_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", third_callback, NULL, NULL);
/*
Last add - first run. In this case execution order is
* third_callback
* mkdir_log_callback
* mkdir_callback
if third_callback fuctions will return FALSE, then other callbacks
(mkdir_log_callback and mkdir_callback) never run!
*/
... /* some code */
/* for example, after pressing F7 */
mc_event_raise("filesystem", "mkdir", "some event_data... path to directory");
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 2511_simplify_keybindings:
Symbolic names of keymap sections are defined.
Change hardcoded definitions of default keymap.
Allow remove key with empty value from target config.
Prepare to merge default and user-defined keymaps.
Added --nokeymap command line option to disable load keybindings from file.
Define keybind numbers using enum.
Fixup of shift-arrow mark in editor.
Unification of keybinding names.
Ticket #2511: simplification and unification of keybinding names.