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>
* 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.
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>
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>
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>
* 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.
* 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.
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>
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>
* 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.