Commit Graph

10964 Commits

Author SHA1 Message Date
Andrew Borodin
d459c83db3 Ticket #1651: user menu in standalone mcedit: filetype-specific items don't show.
And some type accuracy was made.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-06 13:55:18 +03:00
Ilia Maslakov
0eebe2e1d6 Merge branch '2427_cython_syntax'
* 2427_cython_syntax:
  Ticket #2427 (cython syntax highlighting)
2010-12-04 15:00:06 +00:00
Ilia Maslakov
8def8ec662 Ticket #2427 (cython syntax highlighting)
added rules for cython syntax highlighting

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-04 14:58:14 +00:00
Ilia Maslakov
5267c9dcc3 added new skin 'dark'
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-04 11:45:03 +00:00
Ilia Maslakov
810a2417a0 Merge branch '2375_smart_backspace_in_panels'
* 2375_smart_backspace_in_panels:
  renamed:
  Ticket #2375 (do cd .. if command line is empty)
2010-12-04 09:35:35 +00:00
Ilia Maslakov
f153e1ad29 renamed:
* PanelCtrlNextPage into PanelGotoChildDir
    * PanelCtrlPrevPage into PanelGotoParentDir

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-04 09:06:06 +00:00
Ilia Maslakov
2690d2d9f5 Ticket #2375 (do cd .. if command line is empty)
New keybinding "PanelSmartJumpUp" for the jump to the parent directory if command line is empty. Not defined by default.
    This binding maybe used for bind 'Backspace' as hotkey for 'cd ..' (only if command line is empty).

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-04 09:05:07 +00:00
Andrew Borodin
2bff7b9d80 Merge branch '2434_fileop_source_file_name'
* 2434_fileop_source_file_name:
  Ticket #2434: fixed source file name of file operation.
2010-12-03 15:41:45 +03:00
Andrew Borodin
63cc3d01af Ticket #2434: fixed source file name of file operation.
If file name is absolute, don't join it with current directory name.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-03 15:41:19 +03:00
Andrew Borodin
0db609868d Merge branch '2419_smb_configdir'
* 2419_smb_configdir:
  Ticket #2419: configure script doesn't set samba configdir.
2010-12-03 15:37:44 +03:00
Andrew Borodin
72ee546a59 Ticket #2419: configure script doesn't set samba configdir.
lib/vfs/mc-vfs/samba/configure can't set the value of SAMBA_CFLAGS
in lib/vfs/mc-vfs/Makefile.am.

The solution: to avoid configuration code duplication, use environment
variables SMBCONFIGDIR and SMBCODEPAGEDIR to set up values of configdir
and codepagedir variables in lib/vfs/mc-vfs/samba/Makefile because
samba configure is child process of main configure.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-03 15:36:47 +03:00
Andrew Borodin
00b1aa4a8e Fixup of formatted output of file size in 'File exists' dialog window.
The %j modifier used to show file size produces segmentation fault
on some platforms. PRIuMAX macro cannot be used within i18b'd strings.
Solution: use %llu modifier with typecasting to unsigned long long.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-03 13:28:03 +03:00
Slava Zanko
2ac5f2ce18 Merge branch '2409_gmodule_cflags'
* 2409_gmodule_cflags:
  Extended list of GCC warning flags.
  maint/version.sh: removed bashizms.
  Fix of uintmax_t variables output.
  Avoid compiler warnings.
  Cast mode_t to unsigned int for formatted output.
  Include stdio.h for fprintf().
  Fixed declaration of mouse callback type
  Quote value of MAN_DATE.
  Ticket #2409: fix of GModule detection and usage.
2010-12-03 10:07:00 +02:00
Slava Zanko
1914a54555 Extended list of GCC warning flags.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-12-03 10:59:23 +03:00
Slava Zanko
6376db2df1 maint/version.sh: removed bashizms.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-12-03 10:59:23 +03:00
Andrew Borodin
fe8c5390ad Fix of uintmax_t variables output.
Use PRIuMAX and PRIXMAX instead of ju and jX modifiers respectively
for formatted output of uintmax_t variables.
If PRIXMAX is not defined (i.e. in Solaris9), use PRIxMAX instead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-03 10:58:39 +03:00
Andrew Borodin
6e6ec057cb Avoid compiler warnings.
(file_mask_dialog): do_background argument shadows do_background()
function; renamed to do_bg.

(label_callback): unitialized variable.

(read_filesystem_list): const char *.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-12-02 22:12:56 +03:00
Andrew Borodin
5891476737 Cast mode_t to unsigned int for formatted output.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 21:59:42 +03:00
Andrew Borodin
d8ce7e5e4e Include stdio.h for fprintf().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 21:59:42 +03:00
Andrew Borodin
ed87b08a14 Fixed declaration of mouse callback type
...and minor indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 21:59:42 +03:00
Andrew Borodin
31eec9f7ea Quote value of MAN_DATE.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 21:59:42 +03:00
Andrew Borodin
62c05d62f3 Ticket #2409: fix of GModule detection and usage.
Don't mix GLib and GModule compiler and linker options.

Use gmodule-no-export if present to avoid use -Wl,--export-dynamic
option with some linkers. If gmodule-no-export is not available,
use generic gmodule.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 21:59:42 +03:00
Andrew Borodin
4c356e3dd3 Merge branch '1939_save_panels_ini'
* 1939_save_panels_ini:
  Ticket #1939: fix of panel state saving.
2010-12-02 12:48:40 +03:00
Andrew Borodin
2745980520 Ticket #1939: fix of panel state saving.
Panel state is saved in ~/.mc/panels.ini:
1) when "Save setup" command is invoked;
or
2) when MC is quited and "Auto save panels setup" option is set.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 12:48:20 +03:00
Andrew Borodin
39fd2ff03b Merge branch '2432_broken_bs'
* 2432_broken_bs:
  Ticket #2432: backspace key doesn't work in input lines.
2010-12-02 11:30:49 +03:00
Andrew Borodin
680b9a8220 Ticket #2432: backspace key doesn't work in input lines.
Also added default bindings for C-d and C-h keys in editor and input
lines.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 11:30:34 +03:00
Andrew Borodin
cbd436f00f Merge branch '2171_popup_menu_colors'
* 2171_popup_menu_colors:
  Ticket #2171: colors for popup menu:
2010-12-02 09:56:19 +03:00
Andrew Borodin
380d9bd885 Ticket #2171: colors for popup menu:
... for menu items, selected menu item and for menu title.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:55:59 +03:00
Andrew Borodin
f8207591bd Merge branch '2429_fileop_counters_overflow'
* 2429_fileop_counters_overflow:
  Adjust formatting output of source and destination file sizes
  Unification of ctx and ctx->ui checks.
  Removed unneeded checks.
  Optimization of verbose operations with several files.
  Use size_t instead of off_t for file counters during file operations.
  Ticket #2429: overflow of file operation counters.
2010-12-02 09:42:01 +03:00
Andrew Borodin
17783a240c Adjust formatting output of source and destination file sizes
... and replaced tabs by spaces in defines.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:52 +03:00
Andrew Borodin
bd4dd44ac8 Unification of ctx and ctx->ui checks.
... and type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:52 +03:00
Andrew Borodin
d14f048575 Removed unneeded checks.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:51 +03:00
Andrew Borodin
a95d786742 Optimization of verbose operations with several files.
Check values of verbose and dialog type outside of
file_progress_show_count() and file_progress_show_total()
to avoid double checks of those options and extra function calls.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:51 +03:00
Andrew Borodin
3e7b58d5af Use size_t instead of off_t for file counters during file operations.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:51 +03:00
Andrew Borodin
12ccfdff6c Ticket #2429: overflow of file operation counters.
Use uintmax_t type instead of double for summary size of several files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:51 +03:00
Piotr Drąg
562c0c4cc7 l10n: Updated Polish (pl) translation to 100%
New status: 1095 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-11-28 22:17:33 +00:00
Slava Zanko
005a496453 Update translation files.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-28 23:58:19 +02:00
Slava Zanko
04f4ea1f8d Added Georgian language
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-28 23:49:36 +02:00
Slava Zanko
aaa0d0b36d Merge branch '2432_broken_del'
* 2432_broken_del:
  Ticket #2432: delete and backspace key behaviour broken in master
2010-11-26 23:48:53 +02:00
Slava Zanko
55b4590664 Ticket #2432: delete and backspace key behaviour broken in master
Including wrong separator ',' instead of ';' in /etc/mc/mc.keymap and /etc/mc/mc.keymap.default
(commit b1bd2e2673) causes that mcedit ignores not only ctrl-h and
1;1Cctrl-d keys but also ordinary delete and backspace! This makes mcedit mostly unusable.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-26 14:31:05 +02:00
Slava Zanko
fc99cac4c2 Merge branch '2409_prepare_to_4.7.5'
* 2409_prepare_to_4.7.5: (60 commits)
  Include inttypes.h instead of stdint.h.
  Modified output of --version key.
  Moved filemanager-related stuff to src/filemanager directory
  Init/deinit clean up
  Cleanup of main.[ch].
  Removed hardcoded actions on ctrl-d and ctrl-h hotkeys. Now these hotkeys defined in keymap file.
  Changes for avoid compiler warnings
  Split file src/keybind.[ch] to lib/keybind.[ch] and src/keybind-defaults.[ch].
  Renamed keybind-related functions:
  Moved charsets.[ch]  from src to lib directory
  Refactoring: removed unused variable
  Removed file contrib/dist/mc.qpg.in
  Removed unneded utility mcmfmt
  History optimization.
  Renamed mc_config_direct_set_string() to mc_config_set_string_raw()
  Optimization of confguration library: delete extra checks
  Menu improvements.
  Optimization of str_msg_term_size().
  Use str_msg_term_size() instead of msglen()
  Split lib/widget/widget.[ch] and lib/widget/wtools.[ch] files
  ...
2010-11-26 10:35:02 +02:00
Andrew Borodin
15013927e7 Include inttypes.h instead of stdint.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-26 11:31:18 +03:00
Andrew Borodin
5ec2e4507c Modified output of --version key.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-25 16:31:05 +03:00
Slava Zanko
bbf1f4e857 Moved filemanager-related stuff to src/filemanager directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:32 +03:00
Andrew Borodin
116fdc4220 Init/deinit clean up
...to provide symmetrical usage of init/deinit functions.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Andrew Borodin
fdb61594df Cleanup of main.[ch].
All file panels related stuff was moved to midnight.[ch].

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko
b1bd2e2673 Removed hardcoded actions on ctrl-d and ctrl-h hotkeys. Now these hotkeys defined in keymap file.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko
0ef9273598 Changes for avoid compiler warnings
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko
08e9759283 Split file src/keybind.[ch] to lib/keybind.[ch] and src/keybind-defaults.[ch].
File src/cmddef.h now merged to lib/keybind.h

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:31 +03:00
Slava Zanko
62f3c368c9 Renamed keybind-related functions:
* lookup_action          -> keybind_lookup_action
* lookup_keymap_shortcut -> keybind_lookup_keymap_shortcut
* lookup_keymap_command  -> keybind_lookup_keymap_command

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00