Commit Graph

12186 Commits

Author SHA1 Message Date
Andrew Borodin
779f111f6d mcedit: use new quick dialog engine.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
2fee821a3e mcdiffviewer: use new quick dialog engine.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
083e02be31 mcviewer: use new quick dialog engine.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
581cb4b38e (fg_input_dialog_help): use new quick dialog engine.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
e97ac7507a New QuickDialog engine.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-11-19 21:42:45 +04:00
Andrew Borodin
706c966af8 (groupbox_set_title): new function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
8623039fe8 (groupbox_new): ignore empty string as title.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
e009cd9ea9 (create_dlg): ignore empty string as title.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
d4b95ea14d (button_set_text): don't forced redraw the entire dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
c59a14d438 Associate label with input line and enable/disable them as pair.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
e6f467c875 Add flags to place widgets with horizontal and vertical centering in dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
1206d156bf (widget_set_options): new function to set/reset widget options.
Adjust enable/disable widgets.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
8b9fc35b95 WHLine: adjust initialization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
dc5c49a395 WInput: handle WIDGET_RESIZED.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:45 +04:00
Andrew Borodin
c6ddd28366 Unification of widget and dialog callback functions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:44 +04:00
Andrew Borodin
05d7f3c84e Aggressive use WIDGET macro.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:44 +04:00
Andrew Borodin
2a95cb2ffd Ticket #2919: widget system improvements and unifications.
First step: derive dialog from widget.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-19 21:42:44 +04:00
Andrew Borodin
f45f155a12 Merge branch '2918_cygwin_test_build'
* 2918_cygwin_test_build:
  Ticket #2918: cygwin test failure.
2012-11-14 13:33:57 +04:00
Andrew Borodin
42499480bd Ticket #2918: cygwin test failure.
In
tests/lib/mcconfig/Makefile.am
tests/lib/vfs/Makefile.am
tests/src/filemanager/Makefile.am

AM_LDFLAGS = -Wl,-z,muldefs

is used, but on cygwin the linker does not accept the "-z" option and

AM_LDFLAGS = -Wl,--allow-multiple-definition

is required instead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-14 13:32:55 +04:00
Marco Ciampa
0ffe6fa9d5 Updated italian translation. 2012-11-13 02:12:48 +01:00
Andrew Borodin
3bde17c5a6 src/main.c: indentation.
src/filemanager/midnight.c: likewise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:45:28 +04:00
Andrew Borodin
dc62fdf5bd lib/mcconfig/paths.c: indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:35:46 +04:00
Andrew Borodin
96afe7eb02 Merge branch '2888_cleanup'
* 2888_cleanup:
  Fix of DOXYGEN docs: @return instead of @returns
  src/filemanager/command.c: add DOXYGEN doc little little code cleanup.
  (enter): use GString instead of hand-made memory (re)allocation.
  Clarify of sig_atomic_t usage (got from Mutt).
  Define winch_flag as volatile sig_atomic_t.
  Fixups of SIGWINCH handling.
  Don't exit after migration of configuration files.
  Tweak sources for --with-x/--without-x option.
  Init file highlighting only in full mode.
  (exit_subshell): return gboolean instead of int.
  lib/strutil/strverscmp.c: add missing include of config.h.
  (fish_linear_abort): type accuracy.
  (fish_file_store): remove unnecessary 'was_error' variable.
  (fish_file_store): type accuracy to avoid counter overflow while copiyng huge files.
  (ftpfs_file_store): type accuracy and simplify conditions.
  Ticket #2888: code cleanup before 4.8.7 release.
2012-11-09 10:10:42 +04:00
Andrew Borodin
2940b7455d Fix of DOXYGEN docs: @return instead of @returns
...and other minor corrections.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:13 +04:00
Ilia Maslakov
ff22fa9ca0 src/filemanager/command.c: add DOXYGEN doc little little code cleanup.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-11-09 10:05:13 +04:00
Andrew Borodin
7c415f2ec5 (enter): use GString instead of hand-made memory (re)allocation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:13 +04:00
Andrew Borodin
1d3132c08f Clarify of sig_atomic_t usage (got from Mutt).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:13 +04:00
Andrew Borodin
82bb9c39da Define winch_flag as volatile sig_atomic_t.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:13 +04:00
Andrew Borodin
794145090d Fixups of SIGWINCH handling.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:13 +04:00
Andrew Borodin
f9b6abde52 Don't exit after migration of configuration files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:13 +04:00
Andrew Borodin
3f8e561e17 Tweak sources for --with-x/--without-x option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:13 +04:00
Andrew Borodin
0ac261de1b Init file highlighting only in full mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:13 +04:00
Andrew Borodin
c45a27061b (exit_subshell): return gboolean instead of int.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:12 +04:00
Andrew Borodin
d1fb83358d lib/strutil/strverscmp.c: add missing include of config.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:12 +04:00
Andrew Borodin
07f36b9cf7 (fish_linear_abort): type accuracy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:12 +04:00
Ilia Maslakov
489c3e3242 (fish_file_store): remove unnecessary 'was_error' variable.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-11-09 10:05:12 +04:00
Andrew Borodin
2476f281de (fish_file_store): type accuracy to avoid counter overflow while copiyng huge files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:12 +04:00
Andrew Borodin
b968fe0df8 (ftpfs_file_store): type accuracy and simplify conditions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-09 10:05:12 +04:00
Yury V. Zaytsev
994c432dd5 Ticket #2888: code cleanup before 4.8.7 release.
src/filemanager/dir.c: refactored growing of dir_list into a separate
function.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-11-09 10:05:12 +04:00
Sergei Trofimovich
45b129dd72 ebuild.syntax: add 'epatch_user' keyword
Thanks to Alexei Goncharevich and Pavel Gluschenko

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-11-06 12:13:01 +03:00
Andrew Borodin
1fcf90401a (ftpfs_get_reply): fix condition.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-23 15:18:47 +04:00
Andrew Borodin
56b71ae696 Fixes of indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-22 10:29:43 +04:00
Andrew Borodin
0668e878eb Merge branch '2888_cleanup'
* 2888_cleanup: (30 commits)
  Refactoring of endless loops and some type accuracy.
  Refactoring of subshell support.
  Remove stub environment file from tests
  make internal library for testing purposes
  remove src/main.h file
  Move global variables to an appropriate place
  move do_load_prompt() and load_prompt() from src/main.c to src/filemanager/layout.c
  move do_cd from src/main.c to src/filemanager/panel.c
  mcedit: type accuracy in block operation routines.
  Fix of sys/ioctl.h includes: use HAVE_SYS_IOCTL_H guard.
  Optimization of SIGWINCH handling.
  src/filemanager/Makefile.am: cleanup source file list.
  Clarify of i18n initialization.
  Rename _syntax_marker to syntax_marker_t and reimplement it using GSList.
  (compare_word_to_right): minor refactoring.
  Fix types for line numbers and byte offsets in syntax highlighting engine.
  Many editor functions: take editor as constant object.
  (get_first_editor_line): minor refactoring.
  (edit_get_syntax_color): return color directly.
  Rename syntax_rule to edit_syntax_rule_t.
  ...
2012-10-22 10:09:17 +04:00
Andrew Borodin
6c94ef16ec Refactoring of endless loops and some type accuracy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-21 18:19:52 +04:00
Andrew Borodin
b2f97443e2 Refactoring of subshell support.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-21 18:19:47 +04:00
Slava Zanko
bdd4cdbf82 Remove stub environment file from tests
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-21 18:19:47 +04:00
Slava Zanko
ba0cef24cb make internal library for testing purposes
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-21 18:19:46 +04:00
Slava Zanko
7668c09879 remove src/main.h file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-21 18:19:46 +04:00
Slava Zanko
80011ad7cb Move global variables to an appropriate place
...and move update_xterm_title_path() and title_path_prepare()
from src/main.c to src/filemanager/layout.c

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-21 18:19:12 +04:00
Slava Zanko
6d4c3828af move do_load_prompt() and load_prompt() from src/main.c to src/filemanager/layout.c
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-21 18:19:11 +04:00