This is also available via GIT at <http://www.iki.fi/kon/2006/elinks.git#hotkey-trivial>. I'll probably keep the branch there until it is merged.
do_file_menu: Correct the order of arguments in SET_MENU_ITEM invocations.
The last two parameters are hotkey_state_ and hotkey_pos_, not vice versa.
This bug did not affect the binary because HKS_SHOW is defined as 0 anyway.
---
commit 68168548cee7cd99e5ac0a94732b45726de556ca
tree 45784bb66e015c069f25128fd75fb5c994be8748
parent a14074a763969a74f617b9c938cf7024e44e88d9
author Kalle Olavi Niemitalo <[EMAIL PROTECTED]> Sat, 12 Aug 2006 19:39:45 +0300
committer Kalle Olavi Niemitalo <[EMAIL PROTECTED]> Sat, 12 Aug 2006 19:39:45 +0300
src/dialogs/menu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/dialogs/menu.c b/src/dialogs/menu.c
index b4c2672..56a5274 100644
--- a/src/dialogs/menu.c
+++ b/src/dialogs/menu.c
@@ -364,7 +364,7 @@ do_file_menu(struct terminal *term, void
if (o) {
SET_MENU_ITEM(e, N_("Open ~new window"), NULL, ACT_MAIN_OPEN_NEW_WINDOW,
open_in_new_window, send_open_new_window,
- (o - 1) ? SUBMENU : 0, 0, HKS_SHOW);
+ (o - 1) ? SUBMENU : 0, HKS_SHOW, 0);
e++;
}
@@ -382,14 +382,14 @@ do_file_menu(struct terminal *term, void
x = 1;
if (!anonymous && can_open_os_shell(term->environment)) {
SET_MENU_ITEM(e, N_("~OS shell"), NULL, ACT_MAIN_OPEN_OS_SHELL,
- NULL, NULL, 0, 0, HKS_SHOW);
+ NULL, NULL, 0, HKS_SHOW, 0);
e++;
x = 0;
}
if (can_resize_window(term->environment)) {
SET_MENU_ITEM(e, N_("Resize t~erminal"), NULL, ACT_MAIN_TERMINAL_RESIZE,
- NULL, NULL, 0, 0, HKS_SHOW);
+ NULL, NULL, 0, HKS_SHOW, 0);
e++;
x = 0;
}
pgpYZNDgRKybf.pgp
Description: PGP signature
_______________________________________________ elinks-dev mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-dev
