Commit Graph

5727 Commits

Author SHA1 Message Date
Pavel Roskin
9ddf2306e5 * vfs.c (vfs_type_from_op): Check if vfs->prefix is NULL before
calling strlen() on it.
(vfs_strip_suffix_from_filename): Likewise.
(mc_chdir): Don't panic if no chdir function is defined.  This
fixes "cd #gz".
2003-09-28 20:35:08 +00:00
Pavel Roskin
5670baccb4 Update some URLs. From Frederic L. W. Meunier <lists@pervalidus.tk> 2003-09-28 20:04:05 +00:00
Pavel Roskin
df44271fd0 * sldisply.c (RGB_to_BGR): Make const.
* slsignal.c (SLsystem): Commented out.
2003-09-26 21:34:49 +00:00
Pavel Roskin
85dd40bb18 Comment fix. 2003-09-25 16:00:59 +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
60c275f0c3 Include translated menu files. 2003-09-24 01:43:56 +00:00
Pavel Roskin
0f83af0eb6 * doc/sr/Makefile.am: Don't install mcserv documentation if mcfs
support is disabled.
2003-09-24 01:42:09 +00:00
Pavel Roskin
0f822eb355 Force glib 1.2.x in the maximal coverage test. 2003-09-23 20:24:09 +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
6a728cb3f9 * lib/*.ti: Remove, these files are obsolete.
* lib/tdiff: Likewise.
* lib/xterm.tcap: Likewise.
* lib/Makefile.am: Remove obsolete files.  Don't install
README.xterm and xterm.ad, there are partly obsolete and can
break things if used as is.
2003-09-23 06:11:19 +00:00
Pavel Roskin
81b9d5574b Remove term directory, it's obsolete and irrelevant on modern systems. 2003-09-23 06:04:23 +00:00
Pavel Roskin
887d889906 Fix typos.
Reported by GoTaR <gotar@poczta.onet.pl>
2003-09-23 05:54:27 +00:00
Pavel Roskin
8853b2141e Add information about F1n on Linux console. 2003-09-23 05:33:15 +00:00
Pavel Roskin
740630d22e Done: chdir to '~' doesn't work. 2003-09-23 05:23:03 +00:00
Pavel Roskin
525deb6fc7 * vfs.c (vfs_canon): Remove tilde expansion. mc_chdir() should
act like chdir() of localfs, which doesn't expand tilde.
Reported by Doncho Gunchev <mr700@globalnet.bg>
2003-09-23 05:18:50 +00:00
Pavel Roskin
fce42c9316 * syntax.c: Give names to numeric tokens. 2003-09-22 23:04:48 +00:00
Pavel Roskin
1b8b5509f5 Ignore normally created files. 2003-09-22 22:40:29 +00:00
Pavel Roskin
daab7bd737 * syntax.c (compare_word_to_right): Add checks that we don't go
beyond text length for certain invalid rules.
Reported by Juan C. Olivares <juancri@TAGnet.org>
2003-09-22 22:30:48 +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
dc41843825 Force using glib 1.2.x. 2003-09-22 21:07:59 +00:00
Pavel Roskin
c92b530b5f * lib/mc.hint.sr: Updated.
* lib/mc.menu.sr: New file - translated menu.
* lib/Makefile.am: Add mc.menu.sr.
* doc/sr/: New Serbian documentation.
* doc/Makefile.am: Add "sr" directory.
* configure.in: Add substitutions for new files.
2003-09-22 21:04:59 +00:00
Pavel Roskin
4f2dd3ea03 Update from Strahinya Radich. 2003-09-22 20:47:22 +00:00
Pavel Roskin
5504df3ae6 * configure.in: Check for strlcpy() is glib 1.2.x is used. 2003-09-22 20:27:44 +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
cdd8f8ce86 * vfs.c (mc_get_current_wd): Use g_strlcpy() to avoid unneeded
padding and silence Valgrind.
2003-09-22 19:43:41 +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
99a4576359 Make some variables overridable by the environment.
Create a function to try curl and wget.
Try curl first.
2003-09-17 23:28:02 +00:00
Pavel Roskin
4713778c91 Update from Vaidrius Petrauskas <vaidrius@delfi.lt> 2003-09-15 04:34:44 +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
e0f9b7ab83 * editcmd.c (edit_raw_key_query): Use straight widget order.
(edit_completion_dialog): Likewise.
* editwidget.c (edit): Likewise.
2003-09-12 21:30:29 +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
a3a8b91ced Add mc.hint.sr. 2003-09-12 02:53: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
3e0fee42ad * slerr.c (SLang_doerror): Fix possible off-by-one error.
* sltermin.c (_SLtt_tigetent): Likewise.
2003-09-11 21:38:03 +00:00