Commit Graph

10269 Commits

Author SHA1 Message Date
Yury V. Zaytsev
00d69af63f Merge branch '2199_button_bar_mouse'
* 2199_button_bar_mouse:
  Ticket #2199: Buttonbar mouseclicks are off
2010-06-15 09:48:28 +02:00
Egmont Koblinger
86c1e06dee Ticket #2199: Buttonbar mouseclicks are off
Case 1: Make the terminal window 85 characters wide. Click (with the
mouse) on the right side of the "Copy" button on the bottom. See the
Move dialog appearing instead of the Copy dialog.

Case 2: Make the terminal 42 characters wide. Click on the bottom right
corner (the Re~ov button). MC invokes its menu or quits, depending on
the exact click location.

The patch that solves all these. The extra space is not assigned to the
first buttons, but distributed mostly evenly across buttons,
guaranteeing that the first five get exactly as much (or one character
less) than the second five, just as it works for the panels. Also, mouse
clicks use the exact same boundaries that were used when printing the
buttons.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>

Minor code cleanup, renamed local variable to avoid shadowing of global
variable, fixed formatting.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-15 09:46:01 +02:00
Andrew Borodin
a3fc5c8082 Merge branch '2196_editor_tab_spacing'
* 2196_editor_tab_spacing:
  Applied MC indentation policy.
  Declaration of option_tab_spacing variable was moved from main.h to setup.h.
  Ticket #2196: editor hangup if editor_tab_spacing is equalt to 0.
2010-06-14 14:04:41 +04:00
Andrew Borodin
8bcc49900b Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-14 14:04:02 +04:00
Andrew Borodin
dce8010059 Declaration of option_tab_spacing variable was moved from main.h to setup.h.
Includes were fixed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-14 13:53:02 +04:00
Andrew Borodin
0485ae5026 Ticket #2196: editor hangup if editor_tab_spacing is equalt to 0.
Check and correct value of option_tab_spacing during options loading.
Check and correct value of option_word_wrap_line_length during options loading
and after editor options changing.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-14 13:53:02 +04:00
Slava Zanko
d146ab8661 Merge branch '1959_cross_compile'
* 1959_cross_compile:
  Ticket #1959: AC_TRY_RUN crosscompile break
2010-06-14 12:45:56 +03:00
Slava Zanko
da583e5739 Ticket #1959: AC_TRY_RUN crosscompile break
We have several AC_TRY_RUN's in the configure/m4 stuff,
which obviously breaks crosscompiling.

This changeset contain fixies for S-Lang library. First try to search
library via 'pkg-config slang' and then try to go in old search way.
Macro AC_TRY_RUN() now replaced by AC_RUN_IFELSE()

Also, next changes was made:
 * Removed AC_TRY_RUN() from gmodule checking code.
 * More accuracy in grepping of SLANG_VERSION defined constant
 * avoid autoconf error 'suspicious presence of an AC_DEFINE in the second argument, where no actions should be taken'

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-06-14 12:44:29 +03:00
Oleksandr Natalenko
0bad072ae6 l10n: Updated Ukrainian (uk) translation to 100%
New status: 1088 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-06-11 16:27:45 +00:00
Ilia Maslakov
781706ef9c Merge branch '30_external_clipboard_utility'
* 30_external_clipboard_utility:
  updated man's mc.1, ru/mc.1.
  Ticket #30 (use external clipboard utility)
2010-06-11 14:11:27 +00:00
Ilia Maslakov
e320916e54 updated man's mc.1, ru/mc.1.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-06-11 13:48:22 +00:00
Ilia Maslakov
c46e2925e1 Ticket #30 (use external clipboard utility)
added params clipbord_store, clipbord_paste into [Misc] section.
    created src/clipbord.[ch]
    added copy_file_to_ext_clip, paste_to_file_from_ext_clip for copy/paste
    text to the global X clipboard.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-06-11 13:47:46 +00:00
Piotr Drąg
e9b75676a5 l10n: Updated Polish (pl) translation to 100%
New status: 1088 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-06-10 16:45:07 +00:00
Andrew Borodin
9ffb00dac7 Merge branch '2236_segfault_in_viewer'
* 2236_segfault_in_viewer:
  Applied MC indentation policy.
  Ticket #2236: mcview segfaults trying open a compressed man page file.
2010-06-10 13:43:19 +04:00
Andrew Borodin
9769ada65c Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-10 13:42:37 +04:00
Andrew Borodin
03513734c7 Ticket #2236: mcview segfaults trying open a compressed man page file.
How to reproduce:

mcview /usr/share/man/man1/bash.1.gz

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-10 13:39:49 +04:00
Andrew Borodin
044b9eca12 Fixed inaccuracy brach merging.
The e40a84f538 commit actually reverted
the 3209f8e61b one. That is wrong.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-10 11:23:30 +04:00
Sebastian Siebert
d90dede12f l10n: Updated German (de) translation to 100%
New status: 1088 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-06-08 21:33:59 +00:00
Sebastian Siebert
aad024f2af l10n: Updated German (de) translation to 99%
New status: 1083 messages complete with 0 fuzzies and 5 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-06-08 21:22:02 +00:00
Ilia Maslakov
385d5bea41 Merge branch '45_man2hlp_warnings_fix'
* 45_man2hlp_warnings_fix:
  Ticket #45 (fix for man2hlp warnings)
2010-06-08 17:39:44 +04:00
Alexandr Prenko
eafa23a2a7 Ticket #45 (fix for man2hlp warnings)
fixed warnings with some 'man' files

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-06-08 14:30:04 +04:00
Andrew Borodin
7d000ad5e5 Merge branch '2085_deprecated_glib_functions'
* 2085_deprecated_glib_functions:
  g_strncasecmp() function is deprecated.
  g_strup() function is deprecated. g_ascii_strup() is used instead.
  g_strcasecmp() function is deprecated.
  g_strdown() function is deprecated.
  g_string_sprintf() is deprecated.
  Ticket #2085: replacement of deprecated GLib functions.
2010-06-08 13:07:51 +04:00
Andrew Borodin
0cb04aec3b g_strncasecmp() function is deprecated.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-08 13:07:11 +04:00
Andrew Borodin
8b4124dfa5 g_strup() function is deprecated. g_ascii_strup() is used instead.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-08 13:07:11 +04:00
Andrew Borodin
3ddec0f89d g_strcasecmp() function is deprecated.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-08 13:07:11 +04:00
Vit Rosin
77575277e2 g_strdown() function is deprecated.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-08 13:07:11 +04:00
Vit Rosin
e40a84f538 g_string_sprintf() is deprecated.
Reimplemented error messages in src/editor/edit.c using g_strdup_printf().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-08 13:07:11 +04:00
Andrew Borodin
9dc0a54ba1 Ticket #2085: replacement of deprecated GLib functions.
g_tree_traverse() is deprecated. g_tree_foreach() is used instead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-08 13:03:26 +04:00
Andrew Borodin
f5ae2bfedd Updated all po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-07 23:17:41 +04:00
Andrew Borodin
7d0a74a1a5 Merge branch '1646_i18n_spaces'
* 1646_i18n_spaces:
  "Chown command" dialog: applied WGroupbox widget to draw frames.
  "Chmod command" dialog: applied WGroupbox widget to draw frames.
  Ticket #1646: removed leading and trailing spaces in i18n resources.
2010-06-07 21:43:04 +04:00
Andrew Borodin
a6b7f3ffe1 "Chown command" dialog: applied WGroupbox widget to draw frames.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-07 21:42:51 +04:00
Andrew Borodin
088c8f335b "Chmod command" dialog: applied WGroupbox widget to draw frames.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-07 21:42:51 +04:00
Andrew Borodin
aa0d96bd8b Ticket #1646: removed leading and trailing spaces in i18n resources.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-07 21:42:46 +04:00
onto
da9af5a210 l10n: Updated Russian (ru) translation to 99%
New status: 1060 messages complete with 5 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-06-07 12:28:56 +00:00
Andrew Borodin
fab985b1ec Merge branch '2226_info_filesystem_info'
* 2226_info_filesystem_info:
  Fixed int overflow in free modes calculation.
  set_display_type(): fixed memory leak.
  Minor changes of info panel look'n'feel.
  Ticket #2226: info panel inprovements.
2010-06-07 13:04:14 +04:00
Andrew Borodin
bef2bcebda Fixed int overflow in free modes calculation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-07 13:03:53 +04:00
Andrew Borodin
f16ef2090d set_display_type(): fixed memory leak.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-07 13:03:53 +04:00
Andrew Borodin
2d90717ace Minor changes of info panel look'n'feel.
Added title.
Added LTEE and RTEE symbols to the separator line.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-07 13:03:53 +04:00
Andrew Borodin
86a89655e5 Ticket #2226: info panel inprovements.
Fixed info panel initialization and destroying.
Fixed info panel drawing: don't draw info twice.
Fixed includes: added missing <sys/stat.h>.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-07 13:03:53 +04:00
Denys Vlasenko
97b8d4f57a Fedora build machinery noticed that cons.saver acquired
a new library in ldd listing, libglib.

I took a look at it and apparently it is not needed.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-06-04 23:34:41 +04:00
Andrew Borodin
7e5f4a01c0 i18n of search error messages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-04 23:34:28 +04:00
Andrew Borodin
a7cb5194c2 Removed unused defines.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-04 23:34:15 +04:00
Andrew Borodin
c48763fa9d mc_util_write_backup_content(): fixed arguments in fwrite() call.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-04 23:33:48 +04:00
Andrew Borodin
df6bbf38eb Ticket #2225: code cleanup before 4.7.0.6 release.
Fixed indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-04 23:32:38 +04:00
Andrew Borodin
c884435c1e Merge branch '2228_panelize_input_colors'
* 2228_panelize_input_colors:
  Ticket #2228: init_panelize(): undeclared 'input_colors'.
2010-05-31 21:32:36 +04:00
Andrew Borodin
39b45282e6 Ticket #2228: init_panelize(): undeclared 'input_colors'.
If MC is built with --disable-nls option, the input_colors constant
is undeclared in init_panelize() function.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-30 17:53:54 +04:00
Andrew Borodin
159927cb2c Merge branch '2203_vfs_encodings'
* 2203_vfs_encodings:
  Applied MC indentation policy.
  Fixed build with --disable-charset option. Minor optimization.
  Ticket #2203: VFS: use codepage list loaded from mc.charsets file.
2010-05-28 14:58:48 +04:00
Andrew Borodin
2c15a595c1 Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-28 14:58:05 +04:00
Andrew Borodin
0c551c6ed2 Fixed build with --disable-charset option. Minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-28 14:55:16 +04:00
Andrew Borodin
8657fd5f01 Ticket #2203: VFS: use codepage list loaded from mc.charsets file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-28 14:55:16 +04:00