[PATCH]: Add support for changing drives in Cygwin - second try
Pavel Tsekov
ptsekov at gmx.net
Thu Sep 23 05:36:17 UTC 2004
Hello,
Here is an updated patch - please, review. I've made the following
changes:
* the use of `inline' keyword was removed
* the keyboard shortcuts for ALT+F[12] are properly
registered in `default_keymap' now and not as
menu hotkeys.
* the keyboard handlers for ALT+F[12] are no longer
registered in the panel keymap since it is incorrect.
Changelog:
* acinclude.m4 (MC_WITH_CHANGE_DRIVE): Define new macro.
* configure.ac: Use `MC_WITH_CHANGE_DRIVE'.
* Makefile.am (SRCS): Include drive.c and drive.h into the list.
* src/drive.c: New file.
* src/drive.h: Ditto.
* src/main.c (LeftMenu): [USE_CHANGE_DRIVE] Add new menu item.
(RightMenu): Ditto.
(default_map): [USE_CHANGE_DRIVE] Bind `drive_cmd_left()' to
ALT+F1.
[USE_CHANGE_DRIVE] Bind `drive_cmd_right()' to ALT+F2.
* src/screen.c (panel_keymap): [USE_CHANGE_DRIVE] Bind
`drive_cmd()' to ALT+d.
Thanks!
P.S. I've posted yesterday but the message was put on hold by
the mailing list software since it was too big (>20 k).
Thus I'm attaching a gzipped patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mc-change-drive-fixed.patch.gz
Type: application/octet-stream
Size: 4823 bytes
Desc:
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20040923/8d0632c2/attachment.obj>
More information about the mc-devel
mailing list