Commit Graph

10473 Commits

Author SHA1 Message Date
Andrew Borodin
1c3aae85ec Minor optimization of [Special dirs] handling.
(tree_store_rescan): use g_list_foreach() to free content of list.
(process_special_dirs): get rid of extra memory allocation.
(should_skip_directory): type accuracy and variable intializations.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Andrew Borodin
fed3d099c3 Install mc.lib into /usr/share/mc instead of /etc/mc.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Andrew Borodin
51f28528f6 Ticket #1424: install some files into /usr/share/mc instead of /etc/mc.
RPMLint shows the following warnings:
mc.i586: W: conffile-without-noreplace-flag /etc/mc/Syntax
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.lib
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.charsets

First step: install Syntax into /usr/share/mc instead of /etc/mc.
This also fixes the impossibility of editing of system-wide Syntax file
in mcedit under root (menu Options->Syntax file->System Wide).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Andrew Borodin
f581e555c1 Merge branch '2395_panel_scroll_drag'
* 2395_panel_scroll_drag:
  Ticket #2395: scroll down the panel contents by mouse dragging.
2010-10-19 13:52:39 +04:00
Egmont Koblinger
1256af2269 Ticket #2395: scroll down the panel contents by mouse dragging.
Start mc, and make sure that at least one of the two displayed
directiories contains so many files that they cannot all be displayed
at once.

Click in this panel and hold the mouse button pressed, and then move
your mouse downwards. As you pass beyond the bottom of this list, it
should start scrolling.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-18 20:45:51 +04:00
Andrew Borodin
1672d057e5 doc/NEWS: minor fixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-18 17:46:11 +04:00
Andrew Borodin
40f2a3c310 Merge branch '2324_edit_syntax_select_fix'
* 2324_edit_syntax_select_fix:
  Ticket #2324: fix of syntax highlighting lost after manual change.
2010-10-18 15:10:59 +04:00
Andrew Borodin
e4105c1e72 Ticket #2324: fix of syntax highlighting lost after manual change.
Also some type accuracy is provided.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-18 15:10:27 +04:00
Jake Li
f18dab5f65 l10n: Updated Chinese (China) (zh_CN) translation to 99%
New status: 1091 messages complete with 3 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-10-18 03:00:47 +00:00
Andrew Borodin
bce8f71087 Fixed configure options description.
doc/INSTALL: fixed description of configure options.
maint/mc-test: fixed configure options.
maint/mctest: likewise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-16 17:27:11 +04:00
Slava Zanko
f53ed400fb Merge branch '2170_separate_colors'
* 2170_separate_colors:
  Newly added colorpair names now described in man-page
  Ticket #2170: Color collisions
2010-10-13 13:23:25 +03:00
Slava Zanko
982c98a4d6 Newly added colorpair names now described in man-page
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-10-13 13:21:28 +03:00
Egmont Koblinger
aa9cb6d320 Ticket #2170: Color collisions
Midnight Commander's color/skin engine often reuses the same color definition for multiple elements on the UI.
This unnecessarily limits the possibilities when playing with colors.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-13 13:21:10 +03:00
Slava Zanko
8f4ccc8286 Merge branch '2177_change_cmddiff_shorcut'
* 2177_change_cmddiff_shorcut:
  Added default keybind for CK_DiffViewCmd command
  Ticket #2177: mcdiff shortcut
2010-10-12 13:16:48 +03:00
Slava Zanko
5ed7f49eee Added default keybind for CK_DiffViewCmd command
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-12 13:13:11 +03:00
Slava Zanko
1d922f3c75 Ticket #2177: mcdiff shortcut
Changed keymap for CmdDiffView command from 'ctrl-y' to 'ctrl-d'

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-10-12 13:09:48 +03:00
Andrew Borodin
936ca43d00 Fixed name of main ini section.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-11 15:18:08 +04:00
Slava Zanko
e269adf31c Merge branch '2356_view_segfault_arm'
* 2356_view_segfault_arm:
  lib/vfs/mc-vfs/smbfs.c: fixed printf() arguments.
  Fixed type mismatches in formatted output arguments in VFS.
  Fixed signed and unsigned comparisons in viewer.
  Ticket 2356: viewer segfaults on ARM platform because type mismatches of printf arguments.
2010-10-11 11:00:53 +03:00
Enrico Weigelt, metux IT service
fb05515d82 lib/vfs/mc-vfs/smbfs.c: fixed printf() arguments.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-11 11:00:29 +03:00
Andrew Borodin
9678ef3b02 Fixed type mismatches in formatted output arguments in VFS.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-11 11:00:29 +03:00
Andrew Borodin
10949329a7 Fixed signed and unsigned comparisons in viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-11 11:00:29 +03:00
Andrew Borodin
fe2c50cc19 Ticket 2356: viewer segfaults on ARM platform because type mismatches of printf arguments.
Fixed type mismatches of printf arguments in viewer;

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-11 11:00:29 +03:00
Slava Zanko
312fced081 Merge branch '2365_quick_search'
* 2365_quick_search:
  Added doxygen documentation for touched functions.
  Added  definition MC_MAXFILENAMELEN for specify maximum file lenght.
  Ticket #2365: enhancement of quick search.
2010-10-11 10:42:27 +03:00
Slava Zanko
89b905d83b Added doxygen documentation for touched functions.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-10-11 10:39:37 +03:00
Slava Zanko
a8aa5cf678 Added definition MC_MAXFILENAMELEN for specify maximum file lenght.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-10-11 10:38:30 +03:00
Andrew Borodin
504bd05729 Ticket #2365: enhancement of quick search.
Double pressing of C-s runs the quick search using previous search pattern.

Usage example:

1. Press C-s
2. Make quick search with some pattern.
3. Stop quick search with any way.
4. Press C-s. The empty search line will be shown.
5. Press C-s again. The previous pattern will be shown and will be used
in current quick search.

English and Russian man pages are updated.

Thanks Alexey Losich (E.L.K) for the initial patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-11 10:38:29 +03:00
Slava Zanko
99149c5c54 Merge branch '1785_editor_normal_color'
* 1785_editor_normal_color:
  Some optimization and cleanup of color-related code in skin layer.
  Some optimization and cleanup of color-related code in TTY layer.
  Ticket #1785: fix of editor default color usage.
2010-10-06 12:18:17 +03:00
Andrew Borodin
a09f5f372b Some optimization and cleanup of color-related code in skin layer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-06 12:15:55 +03:00
Andrew Borodin
4a175cbbe6 Some optimization and cleanup of color-related code in TTY layer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-06 12:15:55 +03:00
Andrew Borodin
7f119ffbbc Ticket #1785: fix of editor default color usage.
(this_try_alloc_color_pair): if foreground and background editor colors
are undefined in syntax, the NORMAL_COLOR is used. This is wrong.
EDITOR_NORMAL_COLOR mut be used instead.

(edit_status): cleanup: remove useless color change.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-06 12:15:45 +03:00
username
b537fcc5a9 l10n: Updated German (de) translation to 99%
New status: 1086 messages complete with 8 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-10-04 01:26:35 +00:00
username
f5742f43c7 l10n: Updated German (de) translation to 99%
New status: 1085 messages complete with 9 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-10-04 01:15:44 +00:00
Slava Zanko
6a9cbcf432 Added Estonian transtation
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-28 21:46:17 +03:00
Slava Zanko
f1c0d96e08 Added Indonesian translation PO-file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-28 21:25:31 +03:00
Andrew Borodin
ca1ac0b13f Merge branch '2362_wcheck_wradio_width'
* 2362_wcheck_wradio_width:
  Highlight selected item of WRadio using widget width not item width.
  Ticket #2362: width of WCheck and WRadio widgets are initialized incorrectly.
2010-09-28 20:52:32 +04:00
Andrew Borodin
329f473d32 Highlight selected item of WRadio using widget width not item width.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-28 20:51:57 +04:00
Andrew Borodin
64b126fabf Ticket #2362: width of WCheck and WRadio widgets are initialized incorrectly.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-28 20:51:57 +04:00
Ilia Maslakov
3013a364b0 Merge commit 'origin/2287_persistent_bookmarks'
* commit 'origin/2287_persistent_bookmarks':
  Fix in lib/logging.c for proper work on 64-bit platforms.
  Change of bookmark drawing.
  Fixed memory leak: destroy serialization bookmarks if file position is not saved.
  Use GArray for bookmarks instead of raw array.
  Minor optimization, type accuracy, includes fix.
  Ticket #2287 (mcedit: persistent bookmarks)
2010-09-28 18:33:53 +04:00
Slava Zanko
b8836ec6c5 Fix in lib/logging.c for proper work on 64-bit platforms.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-28 14:12:32 +04:00
Ilia Maslakov
0c7f4c2494 Change of bookmark drawing.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-09-28 14:12:32 +04:00
Andrew Borodin
34bee19937 Fixed memory leak: destroy serialization bookmarks if file position is not saved.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-28 14:12:28 +04:00
Andrew Borodin
16d17edb25 Merge branch '2137_panel_encoding_without_vfs'
* 2137_panel_encoding_without_vfs:
  Get rid of some '#ifdef ENABLE_VFS' conditions.
  Fix of file panel encoding change w/o VFS support.
  Cleanup of includes in VFS sources.
  Ticket #2137: cannot change panel encoding without VFS support
2010-09-27 21:46:25 +04:00
Andrew Borodin
ec8d6f0751 Get rid of some '#ifdef ENABLE_VFS' conditions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:44:20 +04:00
Andrew Borodin
c36a810c09 Fix of file panel encoding change w/o VFS support.
Now --disable-vfs doesn't mean the total disabling of VFS.
With --disable-vfs option, the localfs module is built
to use the change of file panel encoding.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:43:43 +04:00
Andrew Borodin
48318f3e5d Cleanup of includes in VFS sources.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:43:43 +04:00
Andrew Borodin
e1d7019ed3 Ticket #2137: cannot change panel encoding without VFS support
Initial step: fixed processing of --enable-vfs* options.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:43:43 +04:00
Andrew Borodin
a3b01d593b Merge branch '1512_panel_codepage'
* 1512_panel_codepage:
  Minor changes: added doxy-comments for functions:
  Fix of VFS encoding parsing.
  Remove only supported encodings from path.
  Don't add current encoding to path again.
  Created macro VFS_ENCODING_PREFIX for "#enc:" encoding prefix.
  When cd to "..", remove encoding at the end of path.
  Added codepage member to the WPanel struct.
  Minor optimization of panel_new_with_dir().
  Load codepage list before loading of configuration.
  Don't push directory to history twice. Unified error message.
  Ticket #1512: panel encoding is not shown correctly in "Choose codepage" dialog.
2010-09-27 21:35:32 +04:00
Slava Zanko
ac85fdd350 Minor changes: added doxy-comments for functions:
- is_supported_encoding();
- panel_new();
- panel_new_with_dir();
- panel_change_encoding().

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-27 21:35:11 +04:00
Andrew Borodin
268c364292 Fix of VFS encoding parsing.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:35:11 +04:00
Andrew Borodin
5007553299 Remove only supported encodings from path.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:34:40 +04:00