[patch] do_file_menu: Correct the order of arguments in SET_MENU_ITEM invocations.

Kalle Olavi Niemitalo <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
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.

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
(unnamed) (text/x-patch, 1.6 KB)
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;
 	}
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFE3kQ3Hm9IGt60eMgRAow9AKCbjmS/KpB0dgEEukmsVYAIMMl4nQCgnLR7
U3d3gY7ml/P2zh5um15ERdY=
=gZ9d
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.