summaryrefslogtreecommitdiff
path: root/mac/src
diff options
context:
space:
mode:
authorAndrew Choi <akochoi@shaw.ca>2001-09-04 06:19:12 +0000
committerAndrew Choi <akochoi@shaw.ca>2001-09-04 06:19:12 +0000
commit3428f2c48a370de1a8500c6f4f2a70fff2fe9df4 (patch)
treebc09387615eab614557728f17877d85c12f94171 /mac/src
parentbc04fb2cf2a5993e12ca561461fc7763028d1c32 (diff)
downloademacs-3428f2c48a370de1a8500c6f4f2a70fff2fe9df4.tar.gz
2001-09-04 Andrew Choi <akochoi@cse.cuhk.edu.hk>
* src/macmenu.c (mac_menu_show): Use refcon of selected menu item.
Diffstat (limited to 'mac/src')
-rw-r--r--mac/src/macmenu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mac/src/macmenu.c b/mac/src/macmenu.c
index 41536e466aa..bf695214267 100644
--- a/mac/src/macmenu.c
+++ b/mac/src/macmenu.c
@@ -1702,14 +1702,13 @@ mac_menu_show (f, x, y, for_click, keymaps, title, error)
SetPort (FRAME_MAC_WINDOW (f));
LocalToGlobal (&pos);
- /* No selection has been chosen yet. */
- menu_item_selection = 0;
-
InsertMenu (menu, -1);
/* Display the menu. */
menu_item_selection = LoWord (PopUpMenuSelect (menu, pos.v, pos.h, 0));
+ GetMenuItemRefCon (menu, menu_item_selection, &menu_item_selection);
+
DeleteMenu (POPUP_SUBMENU_ID);
#if 0