* src/macmenu.c (mac_menu_show): Use refcon of selected menu item.
2001-09-04 Andrew Choi <akochoi@cse.cuhk.edu.hk>
+ * src/macmenu.c (mac_menu_show): Use refcon of selected menu item.
+
* src/macterm.c (XTread_socket): Read all pending events in the
event queue instead of one.
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