Commit Graph

1701 Commits

Author SHA1 Message Date
Pavel Roskin
98950838b4 * dlg.h: Merge with ...
* dialog.h: ... this.  Adjust all dependencies.
* dlg.c: Merge with ...
* dialog.c: ... this.
* Makefile.am (SRCS): Remove dlg.h and dlg.c.
2003-10-24 23:20:30 +00:00
Pavel Roskin
0ee63c1450 * dlg.h: Declare idle_hook here. 2003-10-24 22:51:32 +00:00
Pavel Roskin
732da2fcd9 * dialog.c: Eliminate typedef Refresh, unneeded includes. 2003-10-24 22:31:56 +00:00
Pavel Roskin
a8a7443e91 * complete.h: Move CompletionFunction definition ...
* complete.c: ... here.
2003-10-24 22:11:57 +00:00
Pavel Roskin
714f3ee8a7 * color.c (dealloc_color_pairs): Rename to ...
(done_colors): ... this.
* layout.c (done_screen): Call done_colors() here ...
* slint.c (slang_shutdown): ... but not here, as it's not S-Lang
specific.
2003-10-24 20:55:23 +00:00
Pavel Roskin
b6d7cae6d2 * cmd.c: Remove source routing code.
* main.c: Likewise.
2003-10-24 20:10:01 +00:00
Pavel Roskin
7a5015a5d1 * screen.c (user_file_menu_cmd): Move ...
* cmd.c: ... here.
* cmd.h: Remove unused declarations.
2003-10-24 18:57:43 +00:00
Pavel Roskin
9c72f81a21 * chmod.c (stat_file): Eliminate. Use mc_stat().
* chmod.h: Remove unneded code.
* chown.h: Likewise.
* main.c: Include achown.h.
2003-10-24 18:38:02 +00:00
Pavel Roskin
82a7b75a7b * fileopctx.h: Define struct FileOpContext.
* background.h: Avoid conditional declarations.
2003-10-24 18:28:32 +00:00
Pavel Roskin
5995204d0e * dir.h: Eliminate DIR_H_INCLUDE_HANDLE_DIRENT. Adjust all
callers.  Remove unused code.
* dlg.h: Remove unused code.
* panel.h: Likewise.
2003-10-24 17:55:35 +00:00
Pavel Roskin
7b7d64ce1f * dir.c (if_link_is_exe): Check mc_stat() return value.
Make full_name and file_entry const.
(link_isdir): Make file_entry const.
* dir.h: Adjust declarations.
2003-10-24 13:48:12 +00:00
Pavel Roskin
52045633b3 * view.c (view_handle_editkey): Fix prototype.
(toggle_hex_mode): Don't mess with parent's flags - it can
permanently disable Tab switch between panels.
(view): Use DLG_WANT_TAB for full screen only, unconditionally.
2003-10-24 06:06:10 +00:00
Pavel Roskin
849ef55ae7 * tree.h: Don't include treestore.h. Fix sources to include
treestore.h when needed.
* treestore.h: Eliminate useless typedefs.
2003-10-23 23:57:59 +00:00
Pavel Roskin
f6214df52b * treestore.c (tree_store_start_check_cwd): Eliminate.
(tree_store_start_check): Make globally visible.
* dir.c (do_load_dir): Use path supplied as argument.  Call
tree_store_start_check() after the directory is opened.
(do_reload_dir): Likewise.
2003-10-23 23:37:52 +00:00
Pavel Roskin
55b48c7d74 * dir.c (do_reload_dir): Fix memory leaks. 2003-10-23 22:55:48 +00:00
Pavel Roskin
2fc70a9dd8 * win.c (check_movement_keys): Remove "additional" argument,
it's always 1.
2003-10-23 22:53:32 +00:00
Pavel Roskin
0e1a39cfd0 * view.c: (put_editkey): Rename to ...
(view_handle_editkey): ... this.  Move here some logic from ...
(view_handle_key): ... here.
2003-10-23 22:20:15 +00:00
Pavel Roskin
fec2f41c48 * view.c: Eliminate struct block_ptr_t and enum ViewSide.
Rename ascii mode to text mode.
2003-10-23 21:23:33 +00:00
Pavel Roskin
a5c11d267f * view.c (WView): Remove unused fields localcopy and file_dirty.
Make boolean fields 1 bit wide.
2003-10-23 20:31:28 +00:00
Pavel Roskin
f0b4e66d1a view.c (toggle_hexedit_mode): New function, split from ...
(toggle_wrap_mode): ... this.
(view_labels): Fix overuse of the :? operator.  Don't allow
editing files in quick view - it's easy to lose changes.
2003-10-23 19:53:22 +00:00
Pavel Roskin
1bde2dcbda * main.c (process_args): Use cast to avoid warning. 2003-10-23 19:05:52 +00:00
Pavel Roskin
44eef72b3e * view.c (view_callback): Don't close the current dialog when
the viewer is framed.
2003-10-23 18:26:24 +00:00
Pavel Roskin
5a827286d1 Typo fixes. 2003-10-23 16:33:23 +00:00
Pavel Roskin
7e639b7c95 Typo fix, from Andrew V. Samoilov 2003-10-21 13:32:33 +00:00
Pavel Roskin
6bb01bfe85 * main.c (update_one_panel_widget): Use VFS_SETCTL_FLUSH for the
current directory.  This fixes Ctrl-R on fish.
* vfsdummy.h: Remove unused functions.
2003-10-16 18:57:15 +00:00
Pavel Roskin
0636e2ed73 * main.c (process_args): Use VFS_SETCTL_LOGFILE for ftpfs. 2003-10-16 17:13:35 +00:00
Pavel Roskin
52844a3092 * vfs.h: Rename commands for mc_ctl() and mc_setctl() to make it
clear which function they are used with.
* vfs.c (mc_ctl): Change last argument to (void*).
(mc_set): Likewise.
Adjust all dependencies.
2003-10-16 16:12:19 +00:00
Pavel Roskin
bf5a5c4e04 * glibcompat.h: Define g_try_malloc as malloc for glib 1.2.x. 2003-10-15 07:05:24 +00:00
Pavel Roskin
5cb7bf73fd * view.c (load_view_file): Use g_try_malloc() because the
failure to allcate memory is acceptable here.
Reported by Pavel S. Shirshov <pavelsh@mail.ru>
2003-10-15 04:10:36 +00:00
Pavel Roskin
39d5093acb * tree.c: Remove dead code.
* treestore.c (tree_store_add_entry): Make static.
(tree_store_start_check): Likewise.
2003-10-14 22:48:44 +00:00
Pavel Roskin
4b5acf720e Fix name of Bjrn Eriksson. 2003-10-14 22:02:38 +00:00
Pavel Roskin
0837ed2b49 * cmd.c: Cleanup of unneeded global functions and data.
* color.c: Likewise.
* dir.c: Likewise.
* file.c: Likewise.
* filegui.c: Likewise.
* hotlist.c: Likewise.
* layout.c: Likewise.
* main.c: Likewise.
* panelize.c: Likewise.
* wtools.c: Likewise.
2003-10-14 21:58:56 +00:00
Pavel Roskin
0c75cd31a5 * screen.c (do_enter_on_file_entry): Remove annoying message "no
action taken".  Simplify logic.  Confirmation affects VFS too.
2003-10-13 00:50:11 +00:00
Pavel Roskin
f219b81311 * vfsdummy.h: New file to replace vfs.h if VFS is disabled.
* Makefile.am: Add vfsdummy.h.
* global.h [!USE_VFS]: Include vfsdummy.h.  Fix files that
include vfs.h directly.
2003-10-11 08:54:31 +00:00
Pavel Roskin
c09d542b9e * file.c (check_hardlinks): Use vfs_file_class_flags(). 2003-10-11 08:23:00 +00:00
Pavel Roskin
ceaf7af0e0 * main.c (_do_panel_cd): Use vfs_release_path(). 2003-10-11 06:44:54 +00:00
Pavel Roskin
9d1f2aae71 * vfs.c (vfs_type): Rename to vfs_get_class(). Fix prototype to
avoid using internal vfs type.  Adjust all dependencies.
(vfs_rosplit): Rename to _vfs_get_class().
2003-10-11 06:25:29 +00:00
Pavel Roskin
f1288c7338 * file.c: Use struct vfs_class, not type vfs, which should be
internal to VFS code.
2003-10-11 06:05:51 +00:00
Pavel Roskin
0a3cfe30c3 * background.h: Eliminate background_wait variable. Adjust all
dependencies.
2003-10-08 05:16:58 +00:00
Pavel Roskin
f3bbd7bc5e * main.c (argument_table): Reorder options into logical groups. 2003-10-08 05:06:37 +00:00
Pavel Roskin
403f5068d5 * dlg.c (dlg_broadcast_msg): Use widget_msg_t type.
(dlg_broadcast_msg_to): Likewise.
2003-10-07 22:59:01 +00:00
Pavel Roskin
af43d757e3 Add two regressions. Typo fixes. 2003-09-30 16:50:42 +00:00
Pavel Roskin
36eda299f3 Make save_panel_types() static. 2003-09-29 18:05:38 +00:00
Pavel Roskin
e65f371486 * main.c (copy_other_pathname): Trailing slash in not always
inserted when it should be.
2003-09-29 16:38:03 +00:00
Pavel Roskin
3ba2ed6891 * find.c (do_search): Use strncpy() instead if unsafe strcpy().
Check mc_(l)stat() return values.
2003-09-29 15:58:08 +00:00
Pavel Roskin
9ad0e19d57 * key.c (xterm_key_defines): More sequences for gnome-terminal. 2003-09-24 07:06:08 +00:00
Pavel Roskin
aec581084e Add even more sequences (for gnome-terminal this time). 2003-09-24 03:32:23 +00:00
Pavel Roskin
6683f6eae9 Also add Shift-Ins. 2003-09-23 07:01:57 +00:00
Pavel Roskin
a7032726f5 * key.c (xterm_key_defines): Add more sequences. 2003-09-23 06:58:34 +00:00
Pavel Roskin
740630d22e Done: chdir to '~' doesn't work. 2003-09-23 05:23:03 +00:00