Commit Graph

3012 Commits

Author SHA1 Message Date
Pavel Roskin
6db8e6158c * gfind.c (get_list_info): Get row number as argument. Return
boolean - FALSE if cannot find the row.  Calculate line number.
Change all callers.
(find_do_view_edit): Simplify.  Get line number as argument.
(find_do_view): Close the dialog because it's modal and prevents
user from interacting with other windows.
(find_do_edit): Likewise.
(setup_gui): Enable panelize button.  Improve look.
(find_panelize): New function.  Implement panelize.
(find_file): Add support for view, edit and panelize commands.
(do_find): Likewise.  Simplify.
(add_to_list): Block "select_row" signal until data is set.
2001-07-26 23:32:54 +00:00
Pavel Roskin
b734c85b0a * gfind.c (GFindDlg): Add last_dir_row field for the last
directory row.
(add_to_list): Last argument is now boolean, FALSE for files,
TRUE for directories.  Change all callers.  Use item data for
the row of the last directory.
(select_row): Enable `view' and `edit' buttons for files only,
`change' button for all entries.
(setup_gui): Set selection mode to GTK_SELECTION_BROWSE.  Make
`change' button inactive.  Don't hide `view' and `edit' buttons.
(get_list_info): Look up directory using list item data.
2001-07-26 19:49:11 +00:00
Abel Cheung
9456612686 Update/cleanup zh_TW.Big5.po to follow version 4.5.54a. 2001-07-26 19:16:19 +00:00
Pavel Roskin
67dbee53ed * gfind.c (find_parameters): Fix behavior of the Enter key.
Select initial values in the text entries.
2001-07-26 17:56:07 +00:00
Pavel Roskin
f0beaa4ed7 * cmd.c (do_link): Append filename to the default symlink
target.  Don't add path separator if there is no listing on
the other panel.  Avoid using fixed size buffers.
From Max Schedriviy <max@tavrida.net>
2001-07-26 15:47:19 +00:00
Pavel Roskin
11fd4abc0e * main.c [HAVE_X]: Disable eight_bit_clean and full_eight_bits.
* util.c (is_printable) [HAVE_X]: Simplify.
2001-07-26 05:01:26 +00:00
Pavel Roskin
b900848aaa * cmd.c (do_link): Simplify. Don't silently exit if the source
file is not regular - let user see the error if any.
2001-07-25 22:42:23 +00:00
Pavel Roskin
6a7a2252a3 * glayout.c (create_new_menu): Calculate last position in the
menu before using it.
2001-07-25 18:27:42 +00:00
Stanislav Visnovsky
dd37702f56 2001-07-25 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* sk.po: Updated Slovak translation.
2001-07-25 12:18:20 +00:00
Pavel Roskin
3543e015f4 * gutil.c: Remove broken child management.
(my_system): Fix file modes for standard descriptors.
2001-07-24 23:07:26 +00:00
Pavel Roskin
b502ddc39f * glayout.c (create_new_menu): Use fixed meny position instead
of gnome_app_find_menu_pos() - the later is not reliable and
breaks in many locales.
2001-07-24 20:01:40 +00:00
Pavel Roskin
b9714dad8e Add stamp-h? 2001-07-24 18:10:55 +00:00
Stanislav Brabec
edff4f6a03 czech translation update 2001-07-24 17:14:17 +00:00
Pavel Roskin
93f54c5c1b * achown.c (ch_perm): Make constant array.
(chown_info_update): Use set_perm_by_flags(), not set_perm().
(set_perm): Remove.
2001-07-24 16:16:13 +00:00
Pavel Roskin
3c511e8c08 * doc/mc.1.in: Quote all section headers. Minor formatting fix. 2001-07-24 15:18:29 +00:00
Pavel Roskin
159b4aa1ef * achown.c: Make all global variables static. Fix help.
* complete.c: Likewise.
* chmod.c: Make all global variables static.
* chown.c: Likewise.
* chmod.h: Remove all variables.
2001-07-24 15:04:21 +00:00
Pavel Roskin
fd895e3759 * user.c: Eliminate static variable s_editwidget. Pass
edit_widget as argument.  All callers changed.
(expand_format): Fix expansion of %n and %b for the editor.
* util.c: Remove dead code.
2001-07-23 22:50:54 +00:00
Pavel Roskin
9901b005a6 * doc/mc.1.in: Fix description of mc.lib. Fix broken links. 2001-07-23 21:42:45 +00:00
Pavel Roskin
725f2ac2ec * setup.c (load_keys_from_section): Give terminal-specific
settings preference over settings from [terminal:general].
2001-07-23 19:14:40 +00:00
Stanislav Brabec
a10d12e669 czech translation update 2001-07-22 19:49:32 +00:00
Pavel Roskin
a7937891ea * setup.c (load_keys_from_section): Give ~/.mc/ini preference
over mc.lib.
2001-07-22 06:00:30 +00:00
Pavel Roskin
04b5b06919 * gconf.h: Remove some unused defines. 2001-07-20 22:05:00 +00:00
Pavel Roskin
506273750e * dlg.c: Remove dependency on definitions in gconf.h. 2001-07-20 16:47:46 +00:00
Pavel Roskin
d866874b24 * widget.c (input_callback) [HAVE_X]: Disable Ctrl-q - it
doesn't work.
2001-07-20 16:34:05 +00:00
Pavel Roskin
2dd2dc2182 * file.c (panel_get_file): Use g_assert_not_reached().
* key.c (xgetch_second): Make static.
2001-07-20 16:19:28 +00:00
Pavel Roskin
d3b48bfdb2 * gmc-client.c (main): Use translations from the "mc" domain. 2001-07-20 15:27:46 +00:00
Pavel Roskin
b25f5be791 * Make.common.in: Move all defines ...
* gnome/Makefile.in: ... here ...
* src/Makefile.in: ... and here.
2001-07-20 15:22:50 +00:00
Pavel Roskin
a1532469cd * extfs.c (extfs_init) [GTK]: Use mc_home instead of LIBDIR.
From Ludovic Drolez <ludovic.drolez@freealter.com>.
2001-07-20 14:50:30 +00:00
Pavel Roskin
72d0112151 * syntax.c (open_include_file) [GTK]: Use mc_home instead of
LIBDIR.
2001-07-20 14:45:30 +00:00
Pavel Roskin
2e136f7ec9 * gfind.c (setup_gui): Register destroy handler.
(find_destroy): New function.  Unregister idle task if needed.
(find_do_chdir): Don't unregister idle task.
(find_do_again): Likewise.
(find_do_panelize): Likewise.
2001-07-20 06:07:27 +00:00
Pavel Roskin
ae5de08b1d * gfind.c (insert_file) : Join with find_add_match().
(find_do_edit): Put g_status_label into a box to work around
what appears to be a bug in gtk-1.2.10.
2001-07-20 05:17:08 +00:00
Pavel Roskin
afe79160ef * configure.in: Don't check for getwd, it's completely
eliminated.
* INSTALL: Remove reference to HAVE_GETWD.
2001-07-20 03:41:50 +00:00
Pavel Roskin
6f8e77f1fb * editcmd.c (edit_canonicalize_pathname): Don't ever use
getwd(), use g_get_current_dir() instead.
2001-07-20 03:38:31 +00:00
Pavel Roskin
48101333b5 * lib/mc.ext.in: Fix opening info pages on VFS. Modernize
entries for compressed cpio archives.
2001-07-19 22:15:35 +00:00
Pavel Roskin
24e01579a8 * lib/mc.ext.in: Comment changes. Remove rules for programs -
they were only used in obsolete frontends.  Don't ever use %view
without commands - it's slower and loses user settings, e.g.
hex mode.  Put shared libraries before man pages and read.me
before .me macros so that they match correctly.  Use nm for
shared libraries.  Add rules for StarOffice and AbiWord.
2001-07-19 21:55:24 +00:00
Pavel Roskin
71620c6a9e * user.c (check_format_view): Match "unform" instead of
"unformated" because some users may spell this word correctly.
2001-07-19 21:25:40 +00:00
Pavel Roskin
27f3c8c8ed * editoptions.c (edit_options_dialog): Call edit_load_syntax()
if user	turned syntax highlighting off to unload the rules.
2001-07-19 19:54:45 +00:00
Stanislav Brabec
ef581e8ed9 czech translation update 2001-07-19 13:02:29 +00:00
Pavel Roskin
c19dfa9175 * util.c (get_current_wd): Remove. It's obsoleted by
g_get_current_dir() from glib.
2001-07-18 03:49:08 +00:00
Pavel Roskin
613dc4d1ca * vfs.c (mc_return_cwd): Use g_get_current_dir(). 2001-07-18 03:44:38 +00:00
Pavel Roskin
7f952351c0 * gscreen.c (x_fill_panel): Use g_get_current_dir(). 2001-07-18 03:42:09 +00:00
Pavel Roskin
ce150c8aa9 * ext.c (exec_extension): Add the `rm' command to the end of
temporary scripts so that they erase themselves.
2001-07-18 03:06:57 +00:00
Christian Rose
d75fc658ed 2001-07-18 Christian Rose <menthos@menthos.com>
* sv.po: Updated Swedish translation.
2001-07-17 22:13:29 +00:00
Pavel Roskin
9d94a3fbc8 * edit.h [MIDNIGHT]: Declare wedit.
* editmenu.c: Remove wedit declaration.
* editoptions.c (edit_options_dialog): Load syntax rules if user
turned syntax highlighting on.
* syntax.c (edit_load_syntax): Don't load rules if syntax
highlighting is disabled.
2001-07-17 21:38:49 +00:00
Pavel Roskin
4349ae1c4e * util.c (mc_mkstemps): Always use "unsigned long" for enthropy,
since gcc-2.7.2.1 on SunOS doesn't understand __extension__ and
checking for "long long" is not worth the trouble.
Reported by David Martin <dmartina@excite.es>
2001-07-17 18:38:46 +00:00
Pavel Roskin
94df09e2a6 * glayout.c (gnome_exit): Position message boxes near the
current panel.
2001-07-17 03:48:21 +00:00
Pavel Roskin
f1984dd70d * gutil.c (port_shutdown_extra_fds): Remove, it's unused.
(exec_direct): Likewise.
* gconf.h: Remove declaration of port_shutdown_extra_fds().
2001-07-16 23:40:35 +00:00
Pavel Roskin
f952acf1f8 * utilunix.c (mc_doublepopen): Use _exit() instead of exit()
and don't close any unrelated file descriptors.  Explicitly
close inhandle.
2001-07-16 23:34:56 +00:00
Pavel Roskin
b2c12031c0 * gfind.c: Move most static variables to a structure, use it
in signal callbacks.  All dependencies adjusted.  Don't truncate
filenames.
2001-07-16 21:37:47 +00:00
Pavel Roskin
57fde54f99 * mad.h: Include stdio.h to prevent redefining mad_tempnam().
* main.c [HAVE_X && HAVE_MAD]: Don't call done_key().
2001-07-16 04:06:35 +00:00