Commit Graph

10042 Commits

Author SHA1 Message Date
Slava Zanko
3a1e0966ae Final Indentation of all touched files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-04 17:34:21 +03:00
Enrico Weigelt, metux IT service
db6944f619 Changes into src/consaver directory:
* src/cons.saver.c:
  * handling IO errors in send_contents()
  * ignoring errors in die()
  * handling IO errors in main()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-04 17:34:20 +03:00
Slava Zanko
5d79a90737 Changes into src/editor directory:
* edit/editcmd.c:
  * ignore fscanf() result in edit_delete_macro()
  * ignore fscanf() result in edit_load_macro_cmd()
  * ignoring mc_chown() errors in edit_save_file()
  * handling system() call errors in edit_block_process_cmd()
 * edit/edit.c: handling read errors in edit_load_file_fast()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-04 17:34:20 +03:00
Slava Zanko
35dae723ee Changes into src directory:
* src/background.c:
   * handling read() errors in background_attention()
   * handling IO errors in parent_call_string()
   * ignoring IO errors in background_attention()
   * ignoring write() errors in parent_call_header()
   * ignore IO errors in parent_call()
 *  src/cons.saver.c:
   * handling IO errors in show_console_contents_linux()
   * handling IO errors in handle_console_linux()
 * src/file.c: handling mc_chdir() errors in panel_operate
 * src/find.c: ignoring errors on chdir() call
 * src/main.c:
   * ignoring errors on last write()'s in main()
   * ignoring mc_chdir() errors in setup_dummy_mc()
   * ignoring mc_chdir() errors in translated_mc_chdir()
 * src/panelize.c: ignoring errors on chdir() call
 * src/screen.c:
   * ignoring mc_chdir() errors in panel_new_with_dir()
   * ignoring mc_chdir() errors in reload_panelized()
   * ignoring mc_chdir() errors in update_panels()
 * src/subshell.c: ignoring errors on chdir() call
 * src/tree.c: ignoring mc_chdir() errors in tree_rescan()
 * src/treestore.c: handling read errors in tree_store_load_from()
 * src/widget.c: handling mc_write() errors in save_text_to_clip_file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-04 17:34:20 +03:00
Enrico Weigelt, metux IT service
303833d590 Ticket #1897: Build breaks on ignored return values
Changes into lib directory

 * samba: handling result of system() call
 * rpc: handling write errors
 * ftpfs: ignoring result of fwrite() on logfile (make compiler happy ;-))
 * fish: proper handling of file io calls
 * ignoring result of fwrite() on logfile (make compiler happy ;-))
 * lib/util.c: handling fwrite() call errors in mc_util_write_backup_content()
 * lib/utilunix.c:
  * handling possible error on dup() in close_error_pipe()
  * handling possible error on getcwd() in mc_realpath()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-04 17:34:20 +03:00
Yury V. Zaytsev
66ff918624 Merge branch '1671_i18n_checktimelength'
* 1671_i18n_checktimelength:
  Ticket #1671: i18n_checktimelength may vary depending on the season
2010-05-04 11:27:48 +02:00
Yury V. Zaytsev
28eda66803 Ticket #1671: i18n_checktimelength may vary depending on the season
On some systems i18n_checktimelength may vary not only depending on the
locale but also on the current month. This patch introduces a cyclic
check that loops through all of the months to find out which one has the
longest name.

However, since this function is called on every pannel reload and now
makes 24 calls to str_term_width1 and strftime it makes sense to
introduce a cache for the resulting value.

Thanks to Sergey Fionov <fionov@gmail.com> for the initial patch.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-05-02 13:21:09 +02:00
Andrew Borodin
5ba9fde28c Merge branch '1754_show_current_syntax'
* 1754_show_current_syntax:
  Applied MC indentation policy.
  Optimization: rid of edit_menubar global variable.
  Optimization: rid of wedit and option_syntax_type global variables.
  Type accuracy. Minor optimization.
  Ticket #1754: show current syntax in 'Choose syntax highlighting' dialog.
2010-04-30 18:26:01 +04:00
Andrew Borodin
12d3ef7171 Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-30 18:25:32 +04:00
Andrew Borodin
d391813325 Optimization: rid of edit_menubar global variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-30 18:11:48 +04:00
Andrew Borodin
962bd6fc15 Optimization: rid of wedit and option_syntax_type global variables.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-30 18:11:48 +04:00
Andrew Borodin
1480937b17 Type accuracy. Minor optimization.
GLib function are used to manadge array of strings.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-30 18:11:48 +04:00
Andrew Borodin
469d119e12 Ticket #1754: show current syntax in 'Choose syntax highlighting' dialog.
Now current syntax scheme is highlighted in 'Choose syntax highlighting'
dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-30 18:11:47 +04:00
Slava Zanko
dffe717c56 Merge branch '2122_y2k_bug_in_zip'
* 2122_y2k_bug_in_zip:
  Another side of this bug, missed before
  Ticket #2122: Y2k bug in uzip vfs
2010-04-30 10:49:28 +03:00
Andrew Filonov
d9ebcebdc1 Another side of this bug, missed before
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-04-30 10:49:16 +03:00
Andrew Filonov
fc6cf6bf3f Ticket #2122: Y2k bug in uzip vfs
Newest version of unzip returns year of file with 4 digits.
But regexp in uzip checks only 2 digits.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-04-30 10:49:16 +03:00
Ilia Maslakov
ac9b5fba09 Merge branch '1734_viewer_eol_and_bol_fix'
* 1734_viewer_eol_and_bol_fix:
  Ticket #1734 (viewer: EOL, BOL movement not work in plain mode)
2010-04-30 11:46:23 +04:00
Ilia Maslakov
c8bfd2d992 Ticket #1734 (viewer: EOL, BOL movement not work in plain mode)
fixed EOL, BOL movement in plain mode.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-30 11:45:57 +04:00
Ilia Maslakov
1dce1600b9 Merge branch '2005_viewer_hex_mode_edit_fix'
* 2005_viewer_hex_mode_edit_fix:
  Ticket #2005 (viewer: Text area is not updated in hex mode)
2010-04-30 08:58:01 +04:00
Ilia Maslakov
86758ed198 Ticket #2005 (viewer: Text area is not updated in hex mode)
fixed: Text area is not updated in hex mode (in utf-8).

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-30 08:57:05 +04:00
Daniel Borca
bc0ad94461 ydiff.c: minor fix for more pretty show diff.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-30 08:44:08 +04:00
Sebastian Siebert
35950d65c1 l10n: Updates to German (de) translation
New status: 1060 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-04-30 00:32:18 +00:00
Sebastian Siebert
96b6b576e6 l10n: Updates to German (de) translation
New status: 1060 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-04-29 22:56:51 +00:00
Oleksandr Natalenko
b49e7d435c l10n: Updated Ukrainian (uk) translation to 100%
New status: 1060 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-04-29 14:40:56 +00:00
Yury V. Zaytsev
4d547cc263 Merge branch '2159_spec_mcdiff_update'
* 2159_spec_mcdiff_update:
  Ticket #2159: After the inclusion of mcdiff the SPEC needs an update
2010-04-29 08:58:06 +02:00
Yury V. Zaytsev
1b9da36dc3 Ticket #2159: After the inclusion of mcdiff the SPEC needs an update
Build fails with the following message:

    Installed (but unpackaged) file(s) found:
      /usr/bin/mcdiff

To fix this issue %{_bindir}/mcdiff has to be added to the list of the
packaged files.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-04-29 08:57:31 +02:00
Gergely Szabó
6fadc8f1ba l10n: Hungarian translation updated.
New status: 1039 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-04-29 06:55:04 +00:00
Jake Li
9af5722e78 l10n: Updated Chinese (China) (zh_CN) translation to 100%
New status: 1039 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-04-29 03:24:38 +00:00
Ilia Maslakov
237b2245be Merge branch '2155_remove_selection_before_insert'
* 2155_remove_selection_before_insert:
  Ticket #2155 (remove selected text before input)
2010-04-28 19:21:18 +00:00
Ilia Maslakov
946715e971 Ticket #2155 (remove selected text before input)
Remove selected text before input or paste from clipboard.
    Thanks to nikk9 <dev.nul@mail.ru> for the original patch.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-28 19:12:43 +00:00
Slava Zanko
5e57bd0491 Refresh PO-files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-04-28 16:04:29 +03:00
Emmanuel Trillaud
8e6ae472f3 l10n: Updated French (fr) translation to 97%
New status: 1011 messages complete with 14 fuzzies and 14 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-04-28 08:31:19 +00:00
Freespacer
49efad427f l10n: Updates to German (de) translation
New status: 1039 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-04-27 20:00:19 +00:00
Freespacer
f0158f1667 l10n: Updates to German (de) translation
New status: 1038 messages complete with 1 fuzzy and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-04-27 19:58:21 +00:00
Ilia Maslakov
8e33a5bef8 Merge branch '120_diff_view'
* 120_diff_view: (22 commits)
  Update panels after closing the diff viewer.
  Optimization of Diff Viewer construction and destruction.
  added diff options dialog
  added save/load diffview options.
  Modified destroying of WDiff widget.
  Repaint screen after encoding change.
  Minor clean up.
  Added usage of search engine.
  added merge mechanism
  Add new section [Diff Viewer] in man and built-in help.
  Fixes of button bar handling.
  buttonbar_call(): don't handle Fx button with non-defined command.
  little fixup and optimization
  fixed display utf-8 text in 8-bit locale
  initial step to multiple encodings support and select codeset.
  Fixed segfaults in standalone diff viewer.
  src/diffviewer/ydiff.c: use GLib functions more widely.
  diffviewer: Added libmc for build depends
  Added capability to run MC as standalone diff viewer.
  src/diffviewer/ydiff.c: code indentation & cleanup.
  ...
2010-04-27 13:34:46 +04:00
Andrew Borodin
c2b0209ec9 Update panels after closing the diff viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-27 12:16:05 +04:00
Andrew Borodin
744d61ba03 Optimization of Diff Viewer construction and destruction.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-27 12:16:05 +04:00
Ilia Maslakov
93247568d0 added diff options dialog
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-27 12:16:04 +04:00
Ilia Maslakov
185a6f67f7 added save/load diffview options.
little fixes in the options dialog

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-27 12:16:04 +04:00
Andrew Borodin
e045279dbc Modified destroying of WDiff widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-27 12:16:04 +04:00
Andrew Borodin
6c3e3715f8 Repaint screen after encoding change.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-27 12:16:03 +04:00
Andrew Borodin
29cab775c7 Minor clean up.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-27 12:16:03 +04:00
Slava Zanko
14fa0ea1e2 Added usage of search engine.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-04-27 12:16:03 +04:00
Ilia Maslakov
e5dc79a441 added merge mechanism
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-27 12:15:41 +04:00
Ilia Maslakov
7e5c75c906 Add new section [Diff Viewer] in man and built-in help.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-26 11:44:33 +04:00
Andrew Borodin
f356d83972 Fixes of button bar handling.
Implemented handling of mouse actions in button bar.
Fixed vertical size of Diff Viewer widget.
DiffHelp action was added. F1 button was assigned for it.
Fixed some key bindings.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-26 11:44:33 +04:00
Andrew Borodin
3f11aecb74 buttonbar_call(): don't handle Fx button with non-defined command.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-26 11:44:32 +04:00
Ilia Maslakov
bc03546f3a little fixup and optimization
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-26 11:44:32 +04:00
Ilia Maslakov
103e9f9613 fixed display utf-8 text in 8-bit locale
fixed display 8-bit text in utf-8 locale

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-26 11:44:32 +04:00
Ilia Maslakov
d60be3ca56 initial step to multiple encodings support and select codeset.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-26 11:44:32 +04:00