Commit Graph

12856 Commits

Author SHA1 Message Date
Egmont Koblinger
d77999a6db Ticket #1539: Dealing with utf-8 man pages in view/open
Weird characters are displayed when viewing/opening man page files.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-09-02 14:33:51 +03:00
Andrew Borodin
5ce01a4a58 Merge branch '3189_cleanup'
* 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.
2014-09-02 15:33:03 +04:00
Egmont Koblinger
584673c260 Ticket #3258: fix incorrect percentage in mcview hex mode.
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>
2014-09-02 15:32:36 +04:00
Egmont Koblinger
1aa16a0972 Ticket #3244: add viewbold and viewselected missing from some skins.
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>
2014-09-02 15:32:36 +04:00
Egmont Koblinger
6235636c47 Ticket #3242: mcviewer: remove an unused variables and needless loops.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Dariusz Jaszkowski
6baff7c150 Ticket #3240: fix recognition of UnRAR version.
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>
2014-09-02 15:32:36 +04:00
Marco Atzeri
b9a2ac39e8 Ticket #3239: fix incorrect enconding name for manual pages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Veres Lajos
8d4d8d275f A few typofixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Andrew Borodin
6d82155270 Massive use of MC_PTR_FREE macro.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Andrew Borodin
de026dd1fc Add declaration of g_error_new_valist().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Andrew Borodin
fc8a65b8f2 Don't use 'register' keyword.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Andrew Borodin
9949fa74b6 (sftpfs_open_socket): remove useless condition.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:35 +04:00
Andrew Borodin
87fb484c21 (panel_operate_generate_prompt): ret rid of extra argument.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:35 +04:00
Andrew Borodin
256e5930e7 Ticket #3189: code cleanup before 4.8.13 release.
Rename: src/vfs/sftpfs/config_parcer.c -> src/vfs/sftpfs/config_parser.c

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:35 +04:00
Andrew Borodin
a938aff353 Merge branch '3251_quickview_grab_focus'
* 3251_quickview_grab_focus:
  Ticket #3251: mcviewer: grab focus on mouse click in QuickView mode.
2014-09-02 13:35:15 +04:00
Andrew Borodin
f5c04331e1 Ticket #3251: mcviewer: grab focus on mouse click in QuickView mode.
(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>
2014-09-02 13:34:10 +04:00
Andrew Borodin
d794397536 Merge branch '3237_fish_pwd'
* 3237_fish_pwd:
  Ticket #3237: fish subshell pwd passing is broken.
2014-08-13 09:22:06 +04:00
Chris Owen
cd737f8956 Ticket #3237: fish subshell pwd passing is broken.
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>
2014-08-13 09:18:58 +04:00
Andrew Borodin
4513bd649c Merge branch '3225_input_bs_del_after_mouse_click'
* 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.
2014-08-12 21:19:22 +04:00
Andrew Borodin
4c27f7900c (input_event): fix handling of first mouse click. 2014-08-12 20:48:47 +04:00
Andrew Borodin
ddd336ad4d Ticket #3225: first Backspace/Delete ignored after mouse click in an input widget.
Initial commit: WInput: refactoring of text marking.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-08-03 14:54:16 +04:00
Marco Ciampa
aa6ad4804b Updated italian translation - small fix 2014-07-30 13:38:00 +02:00
Marco Ciampa
4702bfd8af Updated italian translation 2014-07-30 13:07:06 +02:00
Andrew Borodin
4b00e91476 Merge branch '3233_spell_names_i18n'
* 3233_spell_names_i18n:
  Update po/*.po files.
  Ticket #3233: mceditor: translate language names in the spelling assistant dialogue.
2014-07-25 10:41:21 +04:00
Andrew Borodin
e9bcb02cdc Update po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-25 10:39:51 +04:00
David Martin
c88fb51d40 Ticket #3233: mceditor: translate language names in the spelling assistant dialogue.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-25 10:33:57 +04:00
Andrew Borodin
f8ac95e09a Merge branch '3216_cmake_syntax_highlighting'
* 3216_cmake_syntax_highlighting:
  Ticket #3216: improve CMake syntax highlighting.
2014-07-25 09:36:55 +04:00
Ulya Fokanova
6951e39590 Ticket #3216: improve CMake syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-25 09:33:44 +04:00
Andrew Borodin
5d55984f21 Merge branch '3232_fish_prompt'
* 3232_fish_prompt:
  Ticket #3232: don't owerride fish prompt.
2014-07-25 09:23:07 +04:00
Chris Owen
6d6bc23f25 Ticket #3232: don't owerride fish prompt.
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>
2014-07-25 09:18:21 +04:00
Andrew Borodin
4b129bdccf po/mc.pot: specially for Transifex: fix line with "Plural form".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-24 12:47:16 +04:00
Slava Zanko
13475b9ca8 Merge branch '3230_php_syntax'
* 3230_php_syntax:
  Ticket #3230: PHP.syntax improvement
2014-07-22 16:39:15 +03:00
Yves Lavoie
0eb70f58d1 Ticket #3230: PHP.syntax improvement
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>
2014-07-22 16:38:43 +03:00
Andrew Borodin
3fb7f3d0fc Update po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 14:44:16 +04:00
Andrew Borodin
394cde3d13 (edit_collect_completions): fix segmentation fault.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 14:34:11 +04:00
Andrew Borodin
a5488affc8 Indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 13:53:10 +04:00
Andrew Borodin
5244dae630 Merge branch '2136_status_window'
* 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.
2014-07-22 13:41:07 +04:00
Andrew Borodin
d902b8775a mcedit: apply status message for file load process.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 13:40:31 +04:00
Andrew Borodin
92c4040ffb mcedit: apply status message for search process.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 13:40:31 +04:00
Andrew Borodin
00f118e963 (edit_buffer_calc_percent): new editor buffer API.
Modify way to calculate persentage: use byte offers instead of line one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 13:40:30 +04:00
Andrew Borodin
dc03e9e28d mcviewer: apply status message for search process.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 13:40:30 +04:00
Andrew Borodin
fc3f837d03 mcviewer: refactoring of percentage display.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 13:40:30 +04:00
Andrew Borodin
9768be9c24 Apply status message for directory size calculation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 13:40:30 +04:00
Andrew Borodin
c672ed9b21 (label_set_textv): new WLabel API.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 13:40:30 +04:00
Andrew Borodin
9d4bafd889 (simple_status_msg_t): simple status message with label and 'Abort' button.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 13:40:30 +04:00
Andrew Borodin
55e604901f Create status dialog window to interrupt 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>
2014-07-22 13:40:30 +04:00
Andrew Borodin
62faec3a61 Ticket #2136: implement user-friendly interruption of long-time operations.
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>
2014-07-22 13:40:30 +04:00
Andrew Borodin
e786d8266e (mouse_get_local): set Gpm_Event::modifiers only if libgpm is used.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-07-22 13:35:51 +04:00
Andrew Borodin
87ee1b871e Merge branch '3189_cleanup'
* 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.
  ...
2014-07-22 13:13:22 +04:00
Slava Zanko
512ad7d962 Make working with GError in more right way (like with exceptions).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-07-22 13:12:07 +04:00