Commit Graph

9863 Commits

Author SHA1 Message Date
Andrew Borodin
a394ec47f1 Merge branch '2017_missing_include'
* 2017_missing_include:
  Ticket #1017: added missing #include.
2010-02-12 11:46:33 +00:00
Slava Zanko
f9b956b483 Ticket #1996: ViewContinueSearch segfault on empty search
Steps to reproduce:
1. F7,
2. set empty search string,
3. enter
4. n
5. enter
6. n

Fix issue: set view->last_search_string to NULL after call g_free()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-12 13:02:26 +02:00
Max Khon
35e211123b Ticket #1017: added missing #include.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-11 12:23:59 +00:00
Andrew Borodin
dbe8c287a0 Updated FISH VFS description.
Added description of FISH capability to connect
to remote server using any specified port.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-10 21:28:35 +03:00
Serhiy Storchaka
633dd8153b Ticket #1995: Indicating sort order
In "featured" skin sorting order from up to down indicated by arrow «↑» (up),
and vica verse reversed order from down to up indicated by arrow «↓» (down).
This is contrintuitive and contradicts to behavior of other programs
(file managers, mail clients, etc).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-09 12:30:05 +02:00
Piotr Drąg
850bab3ef9 Polish translation for xnc.hlp file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-09 12:22:02 +02:00
Piotr Drąg
5ccc4b26ab Polish translation for hints
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-09 12:14:39 +02:00
Slava Zanko
915bff62fb Mass update of *.po files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-09 12:07:29 +02:00
Piotr Drąg
925d18a7b0 Polish translation for mc
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-09 12:07:04 +02:00
Slava Zanko
ac60804870 Merge branch '1838_add_enca_support'
* 1838_add_enca_support:
  Changes into documentation.
  Ticket #1838: source_codepage autodetect with enca program.
2010-02-08 15:58:32 +02:00
Andrew Borodin
2f5838da42 Changes into documentation.
* added description of enca usage;
 * added example into mc 'man'.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-08 15:57:06 +02:00
Leonid Myravjev
56d955152c Ticket #1838: source_codepage autodetect with enca program.
Added support of autodetect codepages via 'enca' program.

New parameter in user configuration file (~/.mc/ini):

[Misc]
autodetect_codeset=(one of `enca --list languages | cut -d : -f1`)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>

Little code cleanup.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

Type accuracy. Added missing includes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-08 15:56:48 +02:00
Benny Pedersen
110977b161 Ticket #2010: Missing \s in Syntax file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-07 14:12:23 +03:00
Andrew Borodin
03f4a8cd1c Merge branch '1926_ncurses_ctrl_backslash'
* 1926_ncurses_ctrl_backslash:
  Ticket #1926: Ctrl-\ key behaviour in NCurses-based MC.
2010-02-06 16:50:44 +03:00
Andrew Borodin
56bf77ae57 Ticket #1926: Ctrl-\ key behaviour in NCurses-based MC.
Generally, Ctrl-\ is a default assignment to SIGQUIT signal.
S-Lang breaks this assignment. NCurses doesn't, therefore
MC just quits when user presses the Ctrl-\ key.

This commit emulates the S-Lang way in NCurses-based MC.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-06 13:21:25 +03:00
Slava Zanko
e23b0d5a95 Merge branch '1902_mcserv_possible_security_risk'
* 1902_mcserv_possible_security_risk:
  Ticket #1902:  (reopened defect) Possible security risk in mcserv.c
2010-02-05 17:36:33 +02:00
Slava Zanko
7ea4dfb4ca Ticket #1902: (reopened defect) Possible security risk in mcserv.c
Comment by Oswald Buddenhagen:
first, you decided to ignore my advice about not
obfuscating the code with nonsense-checks, and on top of that you
broke the string comparison (just see what happens when you try a user
named "ftpmaster").

This commit contain changes for respect this critic.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-05 17:36:19 +02:00
Andrew Borodin
8a97f22f30 Revert "Ticket #1987: added Cobol syntax highlighting."
This reverts commit a8d75fce1e.

The Cobol syntax description in misc/syntax/Syntax file
breaks highlighting of other syntaxes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-05 12:05:27 +00:00
Franz Wuerl
a8d75fce1e Ticket #1987: added Cobol syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 14:35:55 +00:00
Andrew Borodin
1ebdf5df0a Merge branch '1445_remove_history_items'
* 1445_remove_history_items:
  Fixed listbox scrolling after item deletion.
  Minor optimization of listbox_key() function.
  Removed double check of panel history before show it.
  Documentation update.
  Added history cleanup capability.
  Changed i18n stuff of Confirmation dialog window.
  Preparation to history cleanup confirmation.
  Scroll list if last item have been deleted.
  History items can be deleted now using DEL key.
  Reimplemented usage of history list in history dialog.
  Added deletable member to WListbox structure.
  Added listbox_set_list() function.
  Small refactoring of history engine.
  Reimplemented WListbox to use GList.
  Ticket #1445: remove history items.
2010-02-04 13:44:32 +00:00
Andrew Borodin
36b2136391 Fixed listbox scrolling after item deletion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
361f95a976 Minor optimization of listbox_key() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
081723c4e7 Removed double check of panel history before show it.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
eeaf24454c Documentation update.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
9bc2066b1f Added history cleanup capability.
New shortcuts of WListbox widget:
d or Del: remove current item of history;
D or Shift-Del: clean the history.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
2a8817b9be Changed i18n stuff of Confirmation dialog window.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
ad60c3fd8d Preparation to history cleanup confirmation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
43ca270f99 Scroll list if last item have been deleted.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
9a9e003243 History items can be deleted now using DEL key.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
5718372338 Reimplemented usage of history list in history dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
1947d842a5 Added deletable member to WListbox structure.
Added deletable member to WListbox structure to enable
delete some list entries.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
1695465594 Added listbox_set_list() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
1d16fd3a88 Small refactoring of history engine.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00
Andrew Borodin
32c580ee87 Reimplemented WListbox to use GList.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:43 +00:00
Andrew Borodin
aac16c693d Ticket #1445: remove history items.
Initial step: optimizatiom of listbox_remove_current() function.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:43 +00:00
Slava Zanko
40164d039e Merge branch '1991_toggle_panels_view'
* 1991_toggle_panels_view:
  Ticket #1991: toggle panels view
2010-02-04 11:30:00 +02:00
Slava Zanko
2b653ecf33 Ticket #1991: toggle panels view
Added keybinding for switch panels view (horizontally/vertically).

Default value for keybind is
[main]
CmdTogglePanelsView = alt-comma

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-04 11:29:16 +02:00
Slava Zanko
f1e9e9df7d Merge branch '1902_mcserv_possible_security_risk'
* 1902_mcserv_possible_security_risk:
  Ticket #1902: Possible security risk in mcserv.c
2010-02-04 11:24:36 +02:00
Pavel Vasilyev
b3ea5f8ceb Ticket #1902: Possible security risk in mcserv.c
Look at mcserv.c near 1019
The chroot() call's return value isn't handled - this may a security risk.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-04 11:12:56 +02:00
Slava Zanko
f5da410a87 doc/man/man.1.in: Replace strange Russian word by English
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-03 15:26:07 +02:00
Slava Zanko
ba943581f2 Merge branch '1921_lslR_fix'
* 1921_lslR_fix:
  Ticket #1921: Fix lslR VFS
2010-02-03 13:16:13 +02:00
Serhiy Storchaka
6191ca0b1f Ticket #1921: Fix lslR VFS
The lslR VFS does not work with ls-lR files created in en_US.UTF-8 locale and with files and directories started with whitespaces.
Followed patch fixes both issues.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-02 22:25:54 +02:00
Slava Zanko
8d1eebc30e lib/mcconfig/common.c: fixed memory leak
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-02 21:56:01 +03:00
Andrew Borodin
7bf935ad83 Fixed warning: ISO C90 forbids mixed declarations and code.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-02 21:55:37 +03:00
Andrew Borodin
6354f6b265 Fixed unused variables.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-02 21:45:21 +03:00
Andrew Borodin
7f50de4670 Added missed includes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-02 21:45:11 +03:00
Andrew Borodin
0bd03e07f5 Ticket #1990: code cleanup before 4.7.0.2 release.
Fixed warings: local variable shadows a global declaration.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-02 21:45:05 +03:00
Slava Zanko
f7c574b76e lib/Makefile.am: added lib/skin.h into distribution
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-02 18:01:18 +02:00
Andrew Borodin
0d28632831 Merge branch '1702_menubar_colors'
* 1702_menubar_colors:
  Ticket #1702: changed colors of alvays visible inactive menu bar.
2010-02-02 12:01:01 +00:00
Andrew Borodin
0d12e0def8 Ticket #1702: changed colors of alvays visible inactive menu bar.
If menu bar is always visible, default colors are used in menu.
If menu bar is visible when it is active, skin colors are used.

In this commit, only skin colors are applied to menu. Thanks to
Rashid N. Achilov for idea.
(see http://mail.gnome.org/archives/mc/2010-January/msg00087.html).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-01 15:58:01 +00:00