Commit Graph

14660 Commits

Author SHA1 Message Date
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
Andrew Borodin
fc818e43ab Sync with gnulib 7a15069b68a376f26c5dca34ae2689c5bf8adc99.
src/filemanager/mountlist.c: consider AFS filesystems as remote.

Treat mounts of type 'afs' (OpenAFS, kernel kafs) and 'auristorfs'
(AuriStorFS) as remote.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
f9cb0ba79f lib/vfs/parse_ls_vga.c: refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
65a7278d8a lib/vfs/parse_ls_vga.c: fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
86ba1d78b7 lib/vfs/parse_ls_vga.c: use gboolean instead of int for boolean values.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
4423421014 Ticket #4068: fix preprocessor tests.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
d7b2dfb6e1 doc/NEWS: cosmetics.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
f57daa1678 Ticket #3355: mc-wrapper: don't cd to the same directory.
This would make a subsequent "cd -" more convenient. If you don't alter
the directory in mc, after exiting a "cd -" does nothing, whereas it
could take you to the actual previous directory.

Thanks Egmont Koblinger <egmont@gmail.com> for the initial patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
f25135b74b src/textconf.c: use puts() to print simple strings.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
81fc8e7016 (show_version): show library versions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
acdf388291 src/filemanager/panel.c: fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
ab248ecaad Visualize changes in "Layout" dialog box immediately.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
03c54082a6 src/filemanager/layout.c: rename variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
bedc7e5c12 src/filemanager/layout.c: fix variable type.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
03af8ba4c1 (load_setup_get_keymap_profile_config): use MC_PTR_FREE macro.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
299b94884e (free_keymap_defs): fix memory leak: free menu keymap.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
31b37a1f79 Ticket #4050: code cleanup before 4.8.25 release.
Update copyright years.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-29 19:10:17 +03:00
Andrew Borodin
109b6ed80b Merge branch '4064_garbage_in_history'
* 4064_garbage_in_history:
  Ticket #4064: fix garbage in history.
2020-02-22 09:33:30 +03:00
Andrew Borodin
ac184ebafe Ticket #4064: fix garbage in history.
(do_show_hist): apply new input history and current postition to avoid
use-after-free after call of history_show().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-21 18:24:59 +03:00
Vladislav Zavjalov
cc9b5faf08 Ticket #4062: mceditor: expand shebang regexp for tcl.syntax.
Add shebangs with wish É tclsh.

Original bugreport is https://bugzilla.altlinux.org/37545.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-15 18:24:32 +03:00
Marcel Pol
2720085877 Ticket #4061: add support for opus audio.
The following patch adds support for opus audio files.

The executable opusinfo is part of opus-tools package.
Xmms and play are able to play opus files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-11 21:12:44 +03:00
Grzegorz Szymaszek
aa2904eebc Ticket # 4060: escape backslashes in PHP single quote string.
In PHP strings delimited with single quotes, there are two characters
that can be escaped: \ and '. For example, the PHP string 'a\'b\\c\d'
could be printed as ‘a'b\c\d’.

Escaping quotes was already possible with the PHP syntax file. This
commit adds support for escaping backslashes. It fixes mcedit’s syntax
highlighting on PHP strings that end with \\ (like 'aaa\\').

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-08 19:45:59 +03:00
Andrew Borodin
a5c9fa1394 Merge branch '4052_sigwinch'
* 4052_sigwinch:
  Close sigwinch_pipe at shutdown.
  (tty_create_winch_pipe): use GLib APIs to create pipe
  Ticket #4052: reimplement SIGWINCH handling.
2020-02-08 19:36:43 +03:00
Andrew Borodin
9a57984974 Close sigwinch_pipe at shutdown.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-08 19:35:36 +03:00
Andrew Borodin
b5dae72e1e (tty_create_winch_pipe): use GLib APIs to create pipe
...to get rid of OS-specific features and limitations.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-08 19:35:36 +03:00
Andrew Borodin
91688ab76e Ticket #4052: reimplement SIGWINCH handling.
Bump minimum GLib requirenment to 2.30.0.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-08 19:35:36 +03:00
Andrew Borodin
8c243309cc Merge branch '4056_mcedit_subshell'
* 4056_mcedit_subshell:
  Ticket #5056: avoid subshell warning for mcedit run from mc.
2020-02-08 19:27:16 +03:00
Andrew Borodin
c867b9d40e Ticket #5056: avoid subshell warning for mcedit run from mc.
Don't show message "GNU Midnight Commander is already running on this
terminal. Subshell support will be disabled." if standalone
mcedit/mcview/mcdiffview is run from mc. Show this message only in case
of mc run from another mc, as was before commit
41abcbf706 (ticket #3380).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-08 19:26:49 +03:00
Andrew Borodin
647c431b27 Merge branch '3722_double_click_on_empty'
* 3722_double_click_on_empty:
  Ticket #3722: file manager: clarify double click behaviour.
2020-02-02 19:20:51 +03:00
Andrew Borodin
21d993facd Ticket #3722: file manager: clarify double click behaviour.
Don't execute (or enter to) last file on double click on empty area.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-02-02 19:17:49 +03:00
Andrew Borodin
f30d0e34c0 Merge branch '4055_deb_empty_content'
* 4055_deb_empty_content:
  (extfs_read_archive): simplify conditions.
  (extfs_read_archive): remove extra type cast.
  (extfs_find_entry_int): fix stale symlinks.
  Ticket #4055: broken browsing of .deb packages.
2020-01-25 18:53:41 +03:00
Andrew Borodin
988fb262ae (extfs_read_archive): simplify conditions.
(a || !b) && b == (a && b) || (!b && b) == (a && b) || 0 == a && b

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-01-25 10:43:12 +03:00
Andrew Borodin
298d0bc129 (extfs_read_archive): remove extra type cast.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-01-25 10:38:11 +03:00
Andrew Borodin
ac8d22fa24 (extfs_find_entry_int): fix stale symlinks.
Partially revert e1a1990055.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-01-25 10:35:06 +03:00
Andrew Borodin
3c3cb733c9 Ticket #4055: broken browsing of .deb packages.
src/vfs/extfs/helpers/deb.in: remove leading ./ from paths.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-01-25 09:20:22 +03:00