* 3189_cleanup:
Ticket #3258: fix incorrect percentage in mcview hex mode.
Ticket #3244: add viewbold and viewselected missing from some skins.
Ticket #3242: mcviewer: remove an unused variables and needless loops.
Ticket #3240: fix recognition of UnRAR version.
Ticket #3239: fix incorrect enconding name for manual pages.
A few typofixes.
Massive use of MC_PTR_FREE macro.
Add declaration of g_error_new_valist().
Don't use 'register' keyword.
(sftpfs_open_socket): remove useless condition.
(panel_operate_generate_prompt): ret rid of extra argument.
Ticket #3189: code cleanup before 4.8.13 release.
The percent in the upper right corner normally corresponds to the
cursor. Except when the bottom of the file is displayed, then it's
100%.
If the file is taller than the window, you can walk downwards to its
end and the percent is always correct. Then walk back a screenful and
it stays at 100%, and suddenly jumps back by a lot when the file starts
scrolling.
If the file is shorter than the window, it's always at 100%.
mcview_calc_percent() is supposed to calculate the percentage at offset
p, yet it executes a special branch when "dpy_end == filesize".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Change "black" and "white" to "rgb000" and "rgb555" when it's rendered
in bold, because the legacy 16 colors change their actual color in
addition to going bold in most of the terminals which is undesired.
Second, there was some unintended difference between the two gray skins
in the file type colors.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Add -cfg- option to the command used to detect UnRAR version. This
option prevents UnRAR from reading configuration from .rarrc file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(mcview_t): add new member 'active' to recognize current state in QuickView mode.
(mcview_callback): toggle mcview_t::active in MGS_FOCUS and MSG_UNFOCUS
event handlers.
(do_mcview_event): use mcview_t::active to grab focus.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Use $PWD variable instead of of calling pwd (which can be a function)
since it is read-only and not manipulated.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 3225_input_bs_del_after_mouse_click:
(input_event): fix handling of first mouse click.
Ticket #3225: first Backspace/Delete ignored after mouse click in an input widget.
Support for fish subshell didn't show a prompt, because fish_prompt function
was overridden to pass current path to mc.
Now user can specify a fish_prompt_mc function to use a mc specific
prompt, if none is specified fish_prompt is copied to fish_prompt_mc to
use the default prompt. The new implementation of fish_prompt calls
fish_prompt_mc to display a prompt before exit. Cwd is passed to mc as
before.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Current php.syntax (Utopic 3:4.8.12-1) gets confused with embedded HTML or DOCTYPE statements with strings.
Here's a suggested patch to fix it.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 2136_status_window:
mcedit: apply status message for file load process.
mcedit: apply status message for search process.
(edit_buffer_calc_percent): new editor buffer API.
mcviewer: apply status message for search process.
mcviewer: refactoring of percentage display.
Apply status message for directory size calculation.
(label_set_textv): new WLabel API.
(simple_status_msg_t): simple status message with label and 'Abort' button.
Create status dialog window to interrupt long-time operations.
Ticket #2136: implement user-friendly interruption of long-time operations.
Such dialog allows:
* show status of operation;
* control operation using dialog buttons (Abort, Suspend, Resume, etc).
Status dialog is raised after specified delay after operation start.
If operation duration is less than delay, the status dialog is not raised.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Initial step: created a simple timer.
Unlike GTimer, mc timer doesn't use a lot of multiplications and
divisions to convert seconds to nanoseconds and back. mc timer use only
multiplications to convert seconds to microseconds.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 3189_cleanup: (47 commits)
Make working with GError in more right way (like with exceptions).
Sync with gnulib 6da37d4814fb6d1c61169de4092205a056a04a21.
(mcview_set_datasource_string): minor optimization.
select_flags: make member of panels_options_t.
(panel_execute_cmd): concentrate handling of select/unselect files here.
(FileProgressStatus): change values to avoid overlapping with B_* values.
(listbox_event): clarify check whether listbox is empty.
Sync with gnulib 502809019bd2ca3ce3d041d18c35ce9420eedb72.
(do_enter): make inline and return gboolean instead of int.
(panel_get_title_without_hotkey): return pointer to static buffer
Sync with gnulib f345edc03da1a81f313dd70305764025bffeb1fa.
src/filemanager/panel.c: clarify condition in 'for' statements.
(move_selection): variable is boolean instead of int.
(maybe_cd): argument is boolean instead of int.
src/filemanager/panel.c: use variable initialization
src/filemanager/panel.c: 'else' after 'return' is useless.
src/filemanager/panel.[ch]: make some functions inline.
src/filemanager/panel.c: cosmetics: empty lines, extra braces.
(parse_display_format): minor optimization: get rid of strchr() call.
src/filemanager/panel.[ch]: use gboolean instead of int for boolean variables.
...