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
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
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
8729c81ddc
* find.c (find_file): Don't call file_mark(), it would use
...
uninitialized data.
* main.c (panel_clean_dir): Make panel dirty.
2003-09-22 22:05:27 +00:00
Pavel Roskin
6eda31f362
* menu.h: Return to keeping dialog id instead of a widget
...
pointer for previous widget. The widget can be replaced in the
meantime.
* dlg.c (dlg_select_by_id): New function, essentially a cleaner
implementation of dlg_select_nth_widget().
2003-09-13 07:43:20 +00:00
Pavel Roskin
9941a0bb6a
* dlg.h: Remove "first" field for dialogs and DLG_HAS_MENUBAR.
...
* dlg.c (dlg_mouse_event): Remove menubar hack.
* screen.c (do_panel_event): Redirect mouse events on the upper
frame to the menubar if it's invisible.
(panel_event): Don't repaint the panel after redirected events.
2003-09-13 05:23:53 +00:00
Pavel Roskin
c0b34498dd
* dlg.h: Merge Widget_Item into Widget. Massive adjustment.
2003-09-12 23:38:42 +00:00
Pavel Roskin
d9292b5524
* main.c (setup_panels_and_run_mc): Use straight widget order in
...
midnight_dlg. Select initial panel by dlg_select_widget().
2003-09-12 23:07:09 +00:00
Pavel Roskin
824a5256c1
* menu.h (WMenu): Save pointer to the previous widget, not its
...
number. Adjust all dependencies.
* menu.c (menubar_finish): Restore focus on the saved widget.
* dlg.c (dlg_item_number): Remove, it's unused now.
(dlg_select_nth_widget): Likewise.
2003-09-12 22:45:51 +00:00
Pavel Roskin
e14f56d71b
* dlg.h: Replace DLG_BACKWARD to DLG_REVERSE with a better
...
defined meaning. Make it default to populate dialogs from the
top. Change all calls to create_dlg().
2003-09-12 21:22:01 +00:00
Pavel Roskin
60dda91b9f
* main.c (midnight_callback): Don't redraw dirty panels if the
...
menubar is active.
2003-09-12 03:14:44 +00:00
Pavel Roskin
738044481c
* main.c (menu_cmd): If the current panel is inactive, use the
...
opposite side to start menu.
2003-09-10 23:37:27 +00:00
Pavel Roskin
109b933235
* screen.c (use_display_format): Set dirty flag. Remove calls
...
to paint_panel() where they become unneeded.
2003-09-10 05:26:04 +00:00
Pavel Roskin
bab1cfdc49
* screen.c (update_dirty_panels): New function - update panels
...
with the dirty flag.
(panel_update_contents): Make static, don't call directly.
* main.c: Don't call panel_update_contents(), use dirty flag.
(midnight_callback): Call update_dirty_panels().
2003-09-10 04:42:13 +00:00
Pavel Roskin
13a02ef978
* dlg.h: Use new types for dialog callbacks.
...
(dlg_cb_fn): Swap msg and parm arguments for consistency with
widget callbacks. Adjust all dependencies.
2003-09-07 21:24:01 +00:00
Pavel Roskin
39968fa7af
* main.c (midnight_callback): Fix for the last commit - repaint
...
the panel if the search mode is unset.
2003-09-07 06:15:44 +00:00
Pavel Roskin
485bbcef9b
* main.c (make_panels_dirty): Remove, it's unneded now.
...
(midnight_callback): Don't call make_panels_dirty(). Mark
current panel dirty if the search mode is unset. No need to set
attibutes before calling show_console_contents().
2003-09-07 05:58:55 +00:00
Pavel Roskin
2a60f651e3
* dlg.h: Convert send_idle_msg field to a publicly visible flag
...
DLG_WANT_IDLE.
* main.c (midnight_callback): Move auto_menu handling to the
handler for DLG_IDLE.
(do_nc): Request idle events.
2003-09-07 05:39:51 +00:00
Pavel Roskin
ac1fd1d878
Remove unused variable stdout_fd.
2003-09-02 22:36:58 +00:00
Pavel Roskin
198e0035e4
* listmode.c: Create all buttons in one place. Remove unneeded
...
low-level drawing.
(listmode_edit): Return NULL on cancel.
* main.c (listmode_cmd): Actually use the result of
listmode_edit().
2003-09-01 09:03:30 +00:00
Pavel Roskin
fab6e8a493
* widget.h: Completely get rid of tkname. Rename it to histname
...
for the input widget. Adjust all dependencies.
2003-09-01 00:18:37 +00:00
Pavel Roskin
8b3b8147d7
* cmd.c (edit_symlink_cmd): Fix possible off-by-one after
...
readlink().
* file.c (make_symlink): Likewise.
* main.c (copy_readlink): Likewise.
* screen.c (display_mini_info): Likewise.
(chdir_to_readlink): Likewise.
* util.c (resolve_symlinks): Likewise.
2003-08-29 22:45:04 +00:00
Pavel Roskin
4dd13a09ba
* dir.h (file_entry): Rename "buf" to "st". Adjust all
...
dependencies.
2003-08-18 00:47:43 +00:00
Pavel Roskin
ef2c07b7c8
* main.c: Rename PanelMenu to LeftMenu. Don't assume that
...
LeftMenu and RightMenu are identical.
From Pavel Tsekov <ptsekov@gmx.net>
2003-08-01 20:00:28 +00:00
Pavel Roskin
a1ce20517c
* main.c: Make more variables static.
2003-07-28 16:11:44 +00:00
Pavel Roskin
c72a1ea44c
Get rid of all references to NATIVE_WIN32.
2003-07-23 03:22:32 +00:00
Pavel Roskin
43bbd6d299
* hotlist.c: Add buttons "Refresh" and "Free VFSs now" to Active
...
VFS dialog.
(hotlist_button_callback): Handle the buttons.
* main.c: Remove the 'Free VFS now' menu item.
2003-06-29 23:44:39 +00:00
Pavel Roskin
c36bf430bf
* text.c: Eliminate. Move colors to color.c and clr_scr() to
...
layout.c.
* main.c (restore_console): Eliminate, use handle_console().
* Makefile.am: Remove text.c.
2003-06-22 09:32:52 +00:00
Pavel Roskin
e4f7714ab1
* execute.c: New file with all functions for execution and
...
toggling panels not specific to subshell.
* execute.h: Corresponding header.
* Makefile.am: Adjust for the above.
2003-06-22 09:17:46 +00:00
Pavel Roskin
a568db4228
* main.c (execute): Eliminate. Fix all dependencies.
...
(shell_execute): Constify string argument.
2003-06-22 08:12:13 +00:00
Pavel Roskin
61ac4d5ca1
* dir.c (do_load_dir): Add new argument "path" to avoid the need
...
to request the current directory.
(do_reload_dir): Likewise. Adjust all callers.
2003-06-06 00:52:35 +00:00
Pavel Roskin
12f4a6665a
* main.c (directory_history_add): Don't change the directory
...
passed as the argument, work on a copy.
2003-05-05 15:30:43 +00:00
Pavel Roskin
915136719d
* command.c (enter): Check subshell state early and return if
...
inactive before clearing the command line.
* main.c (force_subshell_execution): Remove magic, unusable,
undocumented command line option "-r".
2003-03-22 05:28:08 +00:00
Pavel Roskin
861deaf09d
* subshell.c (init_subshell_child): Set environment variable
...
MC_SID to the session number of the subshell.
(check_sid): Check that we are not running mc already in the
same session.
* main.c (main): Don't run do_nc() if shutdown was requested.
2003-03-05 20:18:11 +00:00
Pavel Roskin
ff82223a35
Remove references to the archaic "linux" preprocessor definition.
...
Only __linux__ should be used.
2003-02-27 05:09:35 +00:00
Pavel Roskin
9cf0d2c60f
* main.c (do_panel_cd): Record directory history for the panel
...
that changes the directory, not for the current panel.
2003-02-18 06:43:04 +00:00
Pavel Roskin
f95d276250
* main.c (directory_history_list): Allow history command even
...
with just one entry - it's more intuitive.
2003-02-18 06:19:11 +00:00
Pavel Roskin
738e33006b
* util.c (list_append_unique): New function - add text to GList
...
and remove duplicates.
* main.c (directory_history_add): Use list_append_unique().
* widget.c (push_history): Likewise.
2003-02-18 06:12:57 +00:00
Pavel Roskin
89e5cc319e
* panel.h: Convert directory history to GList.
...
* widget.h: Convert input history to GList.
Adjust all dependencies.
2003-02-18 05:25:45 +00:00
Pavel Roskin
0f865bcf8f
* cmd.c (get_random_hint): Add "force" argument to ignore
...
timeout. Adjust all dependencies.
* main.c (load_hint): Likewise.
* layout.c (setup_panels): Force updating the hint bar.
Original patch by Adam Byrtek <alpha@debian.org>
2003-02-05 08:37:21 +00:00
Pavel Roskin
a9440f0320
* main.c (update_xterm_title_path): Use is_printable().
2003-01-27 17:16:11 +00:00
Pavel Roskin
0105a5a3d2
* cmd.c (view_other_cmd): Update path in the xterm title after
...
command execution.
* main.c (do_execute): Likewise.
2003-01-23 02:41:49 +00:00
Pavel Roskin
5f63841598
* main.c: Change default value of full_eight_bits to 0 - it's
...
reported to be broken on many terminals.
2003-01-20 23:45:13 +00:00
Pavel Roskin
f2fb0f85e2
Remove dead code for setting the titlebar.
2002-12-27 23:23:34 +00:00
Pavel Roskin
818d127652
Add comments.
2002-12-26 16:38:25 +00:00
Pavel Roskin
da0c9299ad
* main.c (update_xterm_title_path): New function, display
...
current path in the xterm window title.
(_do_panel_cd): Call update_xterm_title_path().
(done_mc): Remove final message for the titlebar.
* layout.c: Replace "Xterm hintbar" option with more generic
"Xterm window title". Update all dependencies.
(setup_panels): Call update_xterm_title_path().
2002-12-26 16:10:45 +00:00
Pavel Roskin
3286b6e5e2
* main.c (midnight_callback): Fix the last change, so that plain
...
Enter is not affected.
2002-12-26 10:57:11 +00:00
Pavel Roskin
befd79dfbc
* main.c (copy_prog_name): Make static.
...
(midnight_callback): Handle both Alt-Enter and Ctrl-Enter before
the widgets, because the input widget interprets them now.
(default_map): Remove Alt-Enter, it's handled elsewhere.
2002-12-26 02:09:41 +00:00
Pavel Roskin
f3ec13cea2
* main.c (init_xterm_support): Revert last change, it doesn't
...
free all S-Lang memory anyways, but creates portability issues.
2002-12-24 20:22:29 +00:00