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
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
4520b25b36
* glibcompat.c: New file for compatibility with older versions
...
of glib.
* glibcompat.h: Likewise.
* Makefile.am: Add the new files SOURCES.
* global.h: Include glibcompat.h.
2003-09-22 20:21:48 +00:00
Pavel Roskin
4014009077
* menu.c (menu_scan_hotkey): Use g_strlcpy() to avoid undefined
...
behavior when using strcpy() on overlapping strings.
* profile.c (GetSetProfile): Likewise.
* widget.c (button_scan_hotkey): Likewise.
Found by Valgrind.
2003-09-22 19:40:07 +00:00
Pavel Roskin
c53fa9e36d
* dlg.c (dlg_replace_widget): Clean rewrite. It was broken
...
after eliminating Widget_Item.
2003-09-13 08:08:21 +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
312972109a
* screen.c (panel_event): Make sure that the panel is repainted
...
after the event is processed.
2003-09-13 00:22:59 +00:00
Pavel Roskin
a48fa9fa8d
* hotlist.c (l_call): Fix incorrect calls to hotlist_callback().
2003-09-13 00:12:37 +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
5373948a01
* help.c (interactive_display): User straight widget order.
2003-09-12 22:16:32 +00:00
Pavel Roskin
bad1582e06
* complete.c (complete_engine): Don't need DLG_REVERSE.
...
* widget.c (show_hist): Likewise.
* view.c (view): User straight widget order.
2003-09-12 22:08:09 +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
997a8ddd8b
* dlg.c: DLG_BACKWARD now affects how the dialog is populated by
...
widgets, not the runtime behavior.
(init_dlg): Don't change current widget. This allows using
dlg_select_widget() before the dialog is run.
* dlg.h: Remove initfocus field.
* wtools.c (query_dialog): Use dlg_select_widget(), not
initfocus to set the initial widget.
2003-09-12 08:28:21 +00:00
Pavel Roskin
7c143915b4
* widget.c (input_callback): Don't handle Enter.
...
Requested by Ali Akcaagac <aliakc@web.de>
2003-09-12 07:50:08 +00:00
Pavel Roskin
9653eb538f
* chmod.c (chmod_callback): Fix uninitialized variable.
2003-09-12 07:42:16 +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
0464c5e94d
* dlg.c (add_widget): New, safer implementation. Don't rely on
...
the position of the first widget. Disable insertion into
running dialogs - it's unused and cannot be tested.
2003-09-12 02:25:41 +00:00
Pavel Roskin
ab761c64a6
* boxes.c (symlink_dialog): Add "OK" and "Cancel" buttons.
...
Don't translate strings, it's done in quick_dialog().
Reported by Ali Akcaagac <aliakc@web.de>
2003-09-11 22:27:38 +00:00
Pavel Roskin
4d797a9f72
* dlg.h: Remove "last" field from Dlg_head, it's unneeded in a
...
circularly linked list.
2003-09-11 00:13:36 +00:00
Pavel Roskin
9ddc1c9cbc
* screen.c (paint_dir): Don't make panel clean here.
...
(panel_update_contents): Do it here.
(panel_callback): Repaint the panel on focus.
(select_item): Don't paint anything here.
2003-09-11 00:01:16 +00:00
Pavel Roskin
c847c91d61
* dlg.h (send_message): Use cb_ret_t and widget_msg_t.
2003-09-10 23:58:37 +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
e355e25b56
* dlg.h: Use cb_ret_t and widget_msg_t in widget callbacks.
...
Massive adjustment for the above.
2003-09-10 22:48:54 +00:00
Pavel Roskin
683c686159
* chmod.c (chmod_toggle_select): Get id as argument.
2003-09-10 21:35:34 +00:00
Pavel Roskin
0c794a4e95
Fix unsafe defines.
2003-09-10 21:33:12 +00:00
Pavel Roskin
24737eb1c1
* dlg.h: Remove restroy callback. Widgets should use
...
WIDGET_DESTROY. Adjust all dependencies.
2003-09-10 18:21:40 +00:00