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
Andrew Borodin
2e734e5618
Make keybind map a member of Widget.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:17:32 +03:00
Andrew Borodin
326c4ce1d9
(dlg_key_event): clarify post-hotkey handling.
...
Current widget is the sender of MSG_UNHANDLED_KEY message.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:17:32 +03:00
Andrew Borodin
c2aadb2ad5
WGroup: support mouse events.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:17:32 +03:00
Andrew Borodin
4b3b49faad
(widget_draw): support groups.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:17:32 +03:00
Andrew Borodin
540c3813ab
Show console content only in midnight_callback (MSG_DRAW).
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:17:32 +03:00
Andrew Borodin
d1f9e698ac
WDialog: use WBackground in frameless dialogs (screens).
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:17:32 +03:00
Andrew Borodin
a87f1e7bf6
Create WBackground widget.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:17:29 +03:00
Andrew Borodin
ed9199e94e
Create WFrame widget.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:17:02 +03:00
Andrew Borodin
c77dc88ff9
WGroup: support draw.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:15:37 +03:00
Andrew Borodin
2a265e38a0
WDialog set/change size API: move to WGroup.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:15:37 +03:00
Andrew Borodin
04f04ba130
Send new widget size as parameter of MSG_RESIZE message.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:15:37 +03:00
Andrew Borodin
7329f53da5
WEdit: use WRect to save previous location.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:15:37 +03:00
Andrew Borodin
045816ed13
(dlg_set_position): use WRect.
...
(widget_set_size_rect): new API.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:15:37 +03:00
Andrew Borodin
d13a28a91d
Create WRect class.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:15:34 +03:00
Andrew Borodin
6acd8475dd
Update cursor API: support groups.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:13:35 +03:00
Andrew Borodin
206baa8b9a
(widget_is_active): support groups.
2020-03-08 20:13:35 +03:00
Andrew Borodin
95b4a86d44
(dlg_get_current_widget_id): rename to group_get_current_widget_id.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:13:35 +03:00
Andrew Borodin
e9d23e90f0
Find widget API: support groups.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:13:33 +03:00
Andrew Borodin
fdf3d9c3b7
WGroup: implement init & destroy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:12:45 +03:00
Andrew Borodin
5ce511e07e
Implement uniq widget ID for each widget.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:11:55 +03:00
Andrew Borodin
b9cf650605
Move send broadcast message API from WDialog to WGroup.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:11:55 +03:00
Andrew Borodin
74c510f4fb
Widget and WGroup API changes:
...
* (widget_destroy): new API to destroy widget.
* (group_del_widget): rename to group_remove_widget. Don't destroy
widget after remove it from group.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:11:55 +03:00
Andrew Borodin
22ad70ed02
Move widget add/del API from WDialog to WGroup.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:11:55 +03:00
Andrew Borodin
6eedbce076
Move widget selection API from WDialog to WGroup.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:11:39 +03:00
Andrew Borodin
d575c7058b
Move winch_pending member from WDialog to WGroup.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:09:13 +03:00
Andrew Borodin
e4e0070db5
Ticket #2919 : implement WGroup widget.
...
WGroup is the base widget for complex objects such as windows, dialog
windows, etc.
Initial steps:
* move widget list of dialog into WGroup class;
* inherit WGroup from Widget;
* inherit WDialog from WGroup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-08 20:09:12 +03:00
Sergei Trofimovich
afb09f7cd7
Ticket #4070 : misc/Makefile.am: install mc.lib only once.
...
Before the change mc.lib was installed twice due to being
in two _DATA variables:
dist_pkgdata_DATA = \
mc.lib
pkgdata_DATA = \
$(dist_pkgdata_DATA) \
$(PKGDATA_OUT)
This causes occasional install failures when two parallel
`/usr/bin/install` calls race in installing the file:
$ make -j20 DESTDIR=/var/tmp/portage/app-misc/mc-4.8.24/image install
...
/usr/lib/portage/python3.6/ebuild-helpers/xattr/install \
-c -m 644 mc.lib '/var/tmp/portage/app-misc/mc-4.8.24/image/usr/share/mc'
/usr/lib/portage/python3.6/ebuild-helpers/xattr/install \
-c -m 644 mc.lib mc.charsets '/var/tmp/portage/app-misc/mc-4.8.24/image/usr/share/mc'
...
/usr/bin/install: cannot create regular file
'/var/tmp/portage/app-misc/mc-4.8.24/image/usr/share/mc/mc.lib': File exists
After the change mc.lib is present only in dist_pkgdata_DATA.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-03-07 09:58:55 +03:00
Andrew Borodin
45bb66704b
Merge branch '4050_cleanup'
...
* 4050_cleanup: (27 commits)
Update po/*.po files.
src/editor/editdraw.c: refactoring.
src/editor/editdraw.c: fix coding style.
(get_key_code): yet another refactoring.
(get_key_code): minor refactoring.
(get_key_code): fix coding style.
Skins: unify panel-related item names.
Skins: move items from [widget-common] section to [widget-panel] one.
(mc_skin_lines_load_frm): cleanup, fix coding style.
src/filemanager/dir.c: fix coding style.
Sync with gnulib 4d4a22ab1f719b7c6c3fe3dbf45d11baafd3c563.
Sync with gnulib 7a15069b68a376f26c5dca34ae2689c5bf8adc99.
lib/vfs/parse_ls_vga.c: refactoring.
lib/vfs/parse_ls_vga.c: fix coding style.
lib/vfs/parse_ls_vga.c: use gboolean instead of int for boolean values.
Ticket #4068 : fix preprocessor tests.
doc/NEWS: cosmetics.
Ticket #3355 : mc-wrapper: don't cd to the same directory.
src/textconf.c: use puts() to print simple strings.
(show_version): show library versions.
...
2020-02-29 19:31:15 +03:00
Andrew Borodin
1615678cea
Update po/*.po files.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:30:51 +03:00
Andrew Borodin
1ec7a2b768
src/editor/editdraw.c: refactoring.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:18 +03:00
Andrew Borodin
95ed249f6c
src/editor/editdraw.c: fix coding style.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:18 +03:00
Andrew Borodin
dff8ee2981
(get_key_code): yet another refactoring.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
78b01cdf87
(get_key_code): minor refactoring.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
444ec92d81
(get_key_code): fix coding style.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
f30b0d35d5
Skins: unify panel-related item names.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
dcd3a7e39e
Skins: move items from [widget-common] section to [widget-panel] one.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
97eb8faab0
(mc_skin_lines_load_frm): cleanup, fix coding style.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
9d89f2f20d
src/filemanager/dir.c: fix coding style.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
bb93a78336
Sync with gnulib 4d4a22ab1f719b7c6c3fe3dbf45d11baafd3c563.
...
src/filmanager/mountlist.c: consider smb3 file systems as remote.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00