Andrew Borodin
3c38214458
(edit_close_cmd): refactor to reduce number of type castings.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
4c43c29aca
lib/widget/dialog.h: remove unused typedef.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
570f5c1875
lib/widget/background.c: fix comment.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
5add59c8a0
Highlight *.cpio as archives.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
4675793e7c
(listbox_remove_current): remove extra type casting.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
3945f5fdf6
(listbox_callback): reduce variable scope.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
d786d88299
Find file refactoring:
...
* (find_cmd): remove.
* (find_file): rename to find_cmd() and move declaration to cmd.h.
* find.h: remove.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
c9e2a4400e
Input complete: refactoring.
...
* (complete): rename to input_complete() and move declaration to
input.h.
* input_complete.h: remove.
* (input_free_completions): rename to input_complete_free() and move
definition to input_complete.c.
* lib/widget/input_complete.c: rename variables and function from
query_* to complete_*.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
178f88bdd9
input_complete.c: (query_callback): use widget_lookup_key().
...
(input_key_is_in_map): remove.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
d12caa65d0
(dview_handle_key): refactoring.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
d68c5c7e13
(help_handle_key): refactoring.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
ec0c7cd848
(tree_key): fix key handling.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andreas Mohr
fbabe632a0
(user_group_button_cb): fix variable initialization.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
b0abfc8700
chmod: constify function arguments.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
4314c04ede
chmod: show mark of selected mode bits after dialog recreate.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
ab73f041a1
chmod_init: clear check_perm[].selected before use.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
baaef44dde
src/filemanager/chmod.c: rename functions:
...
chmod_init -> chmod_dlg_create
chmod_i18n -> chmod_init
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
a00b7a672b
src/filemanager/chown.c: rename functions:
...
chown_init -> chown_dlg_create
chown_i18n -> chown_init
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
ff1a52c229
src/filemanager/achown.c: rename functions:
...
advanced_chown_init -> advanced_chown_dlg_create
advanced_chown_i18n -> advanced_chown_init
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
74b2c57302
Russian man page fixups.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
e33c0a15b5
Man page fixups.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
8e51f583dc
man2hlp: limited support of \fR, \fB, \fI, and \fP troff commands.
2020-05-17 18:48:18 +03:00
Andrew Borodin
2532d62666
verilog.syntax: make preprocessor keywords sorted.
2020-05-17 18:48:18 +03:00
Andrew Borodin
cf1d4d80be
src/editor/editcmd.c: minor refactoring and fix coding style.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
7652b0f3cb
(edit_draw_this_line): rename variable because it shadows previous one.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
2ba413333b
src/setup.c: use macros in keymap load/set/free functions.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
2f22ce9434
menu: CK_* constants are signed.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
946e8d4888
Ticket #212 : implement keybindings for radiobuttons.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
28574f8008
(vfs_s_subclass::dir_uptodate): return gboolean instead of int.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
6fbf3d2ecd
(toggle_subshell): clarify message.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
9581c263b2
VFS: use mc_timer for timestamps.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
a94dd7d2de
VFS GC: use mc_timer.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
7a58b5e498
Ticket #4050 : code cleanup before 4.8.25 release.
...
mcedit: unify messages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:18 +03:00
Andrew Borodin
816fd412d5
Merge branch '4081_single_file_bps'
...
* 4081_single_file_bps:
Ticket #4081 : speed of file copy is not dispalyed for single file.
2020-05-17 18:43:33 +03:00
Andrew Borodin
b36b9459d5
Ticket #4081 : speed of file copy is not dispalyed for single file.
...
(panel_operate_init_totals): set ctx->progress_totals_computed to TRUE
in case of copy/move operation for single file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:42:13 +03:00
Andrew Borodin
70694f53b6
Merge branch '4057_invisible_error_dialog'
...
* 4057_invisible_error_dialog:
Ticket #4057 : blank screen with invisible error.
2020-05-17 18:37:24 +03:00
Andrew Borodin
b9cf2898c4
Ticket #4057 : blank screen with invisible error.
...
How to reproduce:
Run `mcedit .` from an empty shell. mc used to show an error banner. Now
it shows black-on-black error message.
do_refresh() function expects that at least one fullscreen dialog (file
manager, editor, etc) is existing in the dialog stack. If query dialog
is created before any fullscreen one, do_refresh() do nothing.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-11 10:43:05 +03:00
Elijah Zarezky
17a5ac322d
src/filemanager/chattr.c: add missing comma.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-11 10:31:25 +03:00
Andrew Borodin
6d97f7d0d2
Merge branch '3847_chattr'
...
* 3847_chattr:
Update po/*.po files.
Ticket #3847 : chattr command implementattion.
2020-05-05 19:11:59 +03:00
Andrew Borodin
ef7fab00e9
Update po/*.po files.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-05 19:11:01 +03:00
Andrew Borodin
e14d44c839
Ticket #3847 : chattr command implementattion.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-05 19:06:18 +03:00
alexbodn@gmail.com
61691ea3e8
Ticket #1987 : mcedit: add Cobol syntax highlighting.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-04 08:34:05 +03:00
Elijah Zarezky
ca7b13d658
Improvement of RPM spec syntax highlighting.
...
Add %dnl macro introduced in RPM-4.15.0.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-01 17:35:47 +03:00
Andrew Borodin
cef0bb0138
Fix segfault in case of click on widget that doesn't handle mouse.
...
Use default mouse callback function if widget doesn't handle mouse.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-04-03 16:53:15 +03:00
Andrew Borodin
a55b3fb684
Merge branch '2919_group'
...
* 2919_group: (31 commits)
Update po/*.po files.
WGroup: support colors.
WGroup: support state.
Make WST_CONSTRUCT a default widget state.
WGroup: support key events.
Make keybind map a member of Widget.
(dlg_key_event): clarify post-hotkey handling.
WGroup: support mouse events.
(widget_draw): support groups.
Show console content only in midnight_callback (MSG_DRAW).
WDialog: use WBackground in frameless dialogs (screens).
Create WBackground widget.
Create WFrame widget.
WGroup: support draw.
WDialog set/change size API: move to WGroup.
Send new widget size as parameter of MSG_RESIZE message.
WEdit: use WRect to save previous location.
(dlg_set_position): use WRect.
Create WRect class.
Update cursor API: support groups.
...
2020-03-09 11:03:56 +03:00
Andrew Borodin
53bc276e9a
Update po/*.po files.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-09 11:03:38 +03:00
Andrew Borodin
bcdd81c628
WGroup: support colors.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:17:32 +03:00
Andrew Borodin
d38eb77c8c
WGroup: support state.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:17:32 +03:00
Andrew Borodin
f0e13d8fba
Make WST_CONSTRUCT a default widget state.
2020-03-08 20:17:32 +03:00
Andrew Borodin
f39f05632a
WGroup: support key events.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:17:32 +03:00