Commit Graph

14130 Commits

Author SHA1 Message Date
Egmont Koblinger
0cceb99c2e Ticket #3711: support color aliases in skin files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-21 10:52:37 +03:00
Andrew Borodin
fc3d153b67 Merge branch '3697_ncurses_bsdcurses'
* 3697_ncurses_bsdcurses:
  (tty_init): support curses other than ncurses.
  Ticket #3697: fix broken compatibility with ncurses.
2016-11-21 10:46:52 +03:00
Andrew Borodin
4247120b4a (tty_init): support curses other than ncurses.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-21 10:46:18 +03:00
Andrew Borodin
787e24966d Ticket #3697: fix broken compatibility with ncurses.
Revert "Ticket #3665: fix compatibility with netbsd curses."

This reverts commit 38d4c655d3.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-21 10:46:18 +03:00
Yury V. Zaytsev
f3509db2bc syntax: highlight *.t (Perl test) files as Perl scripts
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-11-13 16:22:02 +01:00
Andrew Borodin
59bfd83744 (skin_dlg_callback): add forgotten return.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-13 17:28:54 +03:00
Andrew Borodin
682a5116ed Merge branch '3145_true_color'
* 3145_true_color:
  Update po/*.po files.
  (parse_256_or_true_color_name): minor optimization.
  Ticket #3145: support for True Color (16 millions colors).
2016-11-13 16:06:06 +03:00
Andrew Borodin
0e25aae952 Update po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-13 16:05:25 +03:00
Andrew Borodin
b19c336951 (parse_256_or_true_color_name): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-13 15:56:59 +03:00
Egmont Koblinger
31320b597c Ticket #3145: support for True Color (16 millions colors).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-13 15:56:59 +03:00
Andrew Borodin
3cf0d55abb Merge branch '3723_skin_selector_location'
* 3723_skin_selector_location:
  Ticket #3723: fix positioning of skin selector dialog.
2016-11-13 15:28:55 +03:00
Andrew Borodin
d314609bb8 Ticket #3723: fix positioning of skin selector dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-13 15:28:45 +03:00
Yury V. Zaytsev
d1766655d3 maint: try to build & run as much tests as possible with -k make option
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-11-13 11:47:23 +01:00
Andrew Borodin
6f6ddefeb0 Merge branch '3714_dialog_resize_location'
* 3714_dialog_resize_location:
  Ticket #3714: (dialog_change_screen_size): fix dialog resizing order.
2016-11-13 12:37:33 +03:00
Andrew Borodin
5169a9dd95 Ticket #3714: (dialog_change_screen_size): fix dialog resizing order.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-13 12:36:57 +03:00
Andrew Borodin
effac47449 Merge branch '3721_radio_msg_cursor'
* 3721_radio_msg_cursor:
  Ticket #3721: clean up radio widget's MSG_CURSOR.
2016-11-13 12:31:56 +03:00
Mooffie
607eb74cbb Ticket #3721: clean up radio widget's MSG_CURSOR.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-13 12:31:47 +03:00
Andrew Borodin
e9e69f5c32 Merge branch '3715_panel_sort_double_click'
* 3715_panel_sort_double_click:
  Ticket #3715: fix file list resorting on double click on panel header line.
2016-11-13 12:27:04 +03:00
Egmont Koblinger
9a63063cb6 Ticket #3715: fix file list resorting on double click on panel header line.
Apply 0-based y coordinates to be consistent with the MSG_MOUSE_DRAG
branch.

This bug was introduced in 54456a678f.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-13 12:26:49 +03:00
Andrew Borodin
83504f2bb5 Revert "(size_trunc_len): align to properly use either IEC or SI prefixes with the unit B (byte)."
This reverts commit bae814d0d4.
2016-11-08 13:19:37 +03:00
Andrew Borodin
e3d457eb3d Revert "Ticket #3666: (size_trunc_len): fix segfault because of small buffer usage."
This reverts commit 3024f309c2.
2016-11-08 13:19:29 +03:00
Andrew Borodin
7374b9c626 Merge branch '3666_iec_si_prefixes_fix'
* 3666_iec_si_prefixes_fix:
  Ticket #3666: (size_trunc_len): fix segfault because of small buffer usage.
2016-11-06 18:31:26 +03:00
Michael Osipov
3024f309c2 Ticket #3666: (size_trunc_len): fix segfault because of small buffer usage.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-06 18:30:41 +03:00
Andrew Borodin
1cccd80399 Merge branch '3666_iec_si_prefixes'
* 3666_iec_si_prefixes:
  Update po/*.po files.
  Update English, Russian, and Spanish man pages
  (size_trunc_len): align to properly use either IEC or SI prefixes with the unit B (byte).
  Ticket #3666: Improper use of IEC and SI prefixes for size in size_trunc().
2016-10-26 13:33:29 +03:00
Andrew Borodin
6a1c307c2e Update po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-10-26 13:33:12 +03:00
Michael Osipov
9f347cbf38 Update English, Russian, and Spanish man pages
...to describe that SI or IEC prefixes are used and *not* SI units.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-10-26 13:33:12 +03:00
Michael Osipov
bae814d0d4 (size_trunc_len): align to properly use either IEC or SI prefixes with the unit B (byte).
Additionally always put a space between number and unit which is
required by the norms.

It is important to note that really small buffers have to be bigger than it
appears because they store bytes and non-Latin scripts need more than one byte
with UTF-8 to encode them, e.g., the string "1023 МиБ" in Russian requires
11 bytes + null terminator.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-10-26 13:33:12 +03:00
Michael Osipov
b3867a6e15 Ticket #3666: Improper use of IEC and SI prefixes for size in size_trunc().
size_trunc() has been aligned to properly use either IEC or SI prefixes with
the unit B (byte). Additionally always put a space between number and unit
which is required by the norms.

Obsolete gettext message ids have been removed and some cleaned up for
duplicate words or leading spaces.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-10-26 13:33:12 +03:00
Andrew Borodin
c2e1ec81f6 Merge branch '3700_segfault_left_info_panel'
* 3700_segfault_left_info_panel:
  Ticket #3700: fix segfault after switch left panel to info mode.
2016-10-23 08:09:20 +03:00
Andrew Borodin
716479ba4f Ticket #3700: fix segfault after switch left panel to info mode.
(widget_replace): if new widget cannot take focus, move focus to other widget
before widget replacement.

In our case, the focused file panel is replaced by Info one. Info panel
a) isn't selectable (it never takes focus) and b) uses CWD of current
panel. Therefore focus must be moved to other file panel to make it
current and correctly set up it's CWD before first draw of Info panel.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-10-23 08:08:15 +03:00
Yury V. Zaytsev
755447b96e Fix typo in source code comments (s/TEMR/TERM/)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-10-08 16:40:38 +02:00
Yury V. Zaytsev
85a28f11ae Merge branch '3698_etags_codejump' 2016-10-08 16:34:56 +02:00
Roman Mikhayloff
224f53518e Ticket #3698: fix mcedit codejump (etags filenames parsing)
This got broken in the following commit for mc-4.8.16:

    a5ebb7d619

As `g_strlcpy` got replaced with `g_strndup`, the meaning of the last
argument has changed: it is no longer the destination size in bytes, but
the maximum number of bytes to copy, and so it had to be decremented by
one accordingly, hence the bug.

Signed-off-by: Roman Mikhayloff <rimf@inbox.ru>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-10-08 11:15:22 +02:00
Lars Wendler
2c576fad94 mcedit: syntax: update ebuild.syntax to include new EAPI 6 keywords
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-10-08 10:44:37 +02:00
Raymond Jennings
6b656100ac mcedit: syntax: fix mismatched highlighting for <{o,u}l> HTML tags
Signed-off-by: Raymond Jennings <shentino@gmail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-10-07 22:38:07 +02:00
Andrew Borodin
8bf560cb8e Merge branch '3672_bind_tab' 2016-10-06 13:19:08 +03:00
Andrew Borodin
ef5f1fa3eb Ticket #3672: allow rebind TAB key to change panel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-10-03 15:21:57 +03:00
Yury V. Zaytsev
8a50e158c3 Update doc/NEWS file
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-10-02 19:41:40 +02:00
Yury V. Zaytsev
d0eab30d64 Update hints translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-10-02 19:35:36 +02:00
Yury V. Zaytsev
8a83d3f309 Update translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-10-02 19:33:58 +02:00
Yury V. Zaytsev
6822251393 Fix assorted man page typos
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-09-20 22:00:52 +02:00
Yury V. Zaytsev
14d7987d25 Ticket #3644: man page uses "the Midnight Commander" instead of "Midnight Commander"
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-09-20 21:31:56 +02:00
Andrew Borodin
0cc22928af lib/widget/menu.c: indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-09-11 11:52:07 +03:00
Andrew Borodin
4d6ea43282 Merge branch '2919_widget_focus_refactoring'
* 2919_widget_focus_refactoring:
  Reimplement widget focus/selection.
  (dlg_set_bottom_widget): rename to widget_set_bottom.
  (dlg_select_widget): rename to widget_select.
  Rename WDialog APIs:
  Refactoring of change of current widget.
  WMenuBar: remove WMenuBar::is_active. Use WST_FOCUSED instead.
  WInput: avoid double draw on resize.
  Menu: avoid double draw on resize.
  (widget_set_size): send MSG_DRAW after MSG_RESIZE.
  Refactoring of widget drawing to avoid multiple widget redraw.
  WView: remove WView::active. Use WST_FOCUSED instead.
  WTree: remove WTree:active. Use WST_FOCUSED instead.
  WButton: remove WButton::selected. Use WST_FOCUSED instead.
  WListbox: remove WListbox::focused. Use WST_FOCUSED instead.
  WST_FOCUSED: add new state and handle it.
  (menubar_callback): refactoring of menu draw after get focus and resize.
  (widget_set_state): return cb_ret_t instead of gboolean.
  Don't focus widget that doesn't have the WOP_SELECTABLE option.
  Use WOP_SELECTABLE option in menu.
  Ticket #2919: refactoring of focus/unfocus of widgets.
2016-09-11 11:35:15 +03:00
Andrew Borodin
36cc88b5f2 Reimplement widget focus/selection.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-09-11 11:30:20 +03:00
Andrew Borodin
599361b3fc (dlg_set_bottom_widget): rename to widget_set_bottom.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-09-11 11:30:20 +03:00
Andrew Borodin
d200893347 (dlg_select_widget): rename to widget_select.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-09-11 11:30:20 +03:00
Andrew Borodin
35451978f6 Rename WDialog APIs:
dlg_one_up -> dlg_select_prev_widget
dlg_one_down -> dlg_select_next_widget

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-09-11 11:30:20 +03:00
Andrew Borodin
b19ae2b938 Refactoring of change of current widget.
Add new WDialog APIs:

  * dlg_set_current_widget_next
  * dlg_set_current_widget_prev
  * dlg_get_widget_next_of
  * dlg_get_widget_prev_of

and use them:

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-09-11 11:30:20 +03:00
Andrew Borodin
47f9b77194 WMenuBar: remove WMenuBar::is_active. Use WST_FOCUSED instead.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-09-11 11:30:20 +03:00