Mercurial > emacs
comparison mac/src/macmenu.c @ 39106:dc9d8a2e8650
2001-09-04 Andrew Choi <akochoi@cse.cuhk.edu.hk>
* src/macmenu.c (mac_menu_show): Use refcon of selected menu item.
author | Andrew Choi <akochoi@shaw.ca> |
---|---|
date | Tue, 04 Sep 2001 06:19:12 +0000 |
parents | 350e6092a4c4 |
children | 71c1cd438d8b |
comparison
equal
deleted
inserted
replaced
39105:c56375806351 | 39106:dc9d8a2e8650 |
---|---|
1700 pos.h = x; | 1700 pos.h = x; |
1701 pos.v = y; | 1701 pos.v = y; |
1702 SetPort (FRAME_MAC_WINDOW (f)); | 1702 SetPort (FRAME_MAC_WINDOW (f)); |
1703 LocalToGlobal (&pos); | 1703 LocalToGlobal (&pos); |
1704 | 1704 |
1705 /* No selection has been chosen yet. */ | |
1706 menu_item_selection = 0; | |
1707 | |
1708 InsertMenu (menu, -1); | 1705 InsertMenu (menu, -1); |
1709 | 1706 |
1710 /* Display the menu. */ | 1707 /* Display the menu. */ |
1711 menu_item_selection = LoWord (PopUpMenuSelect (menu, pos.v, pos.h, 0)); | 1708 menu_item_selection = LoWord (PopUpMenuSelect (menu, pos.v, pos.h, 0)); |
1709 | |
1710 GetMenuItemRefCon (menu, menu_item_selection, &menu_item_selection); | |
1712 | 1711 |
1713 DeleteMenu (POPUP_SUBMENU_ID); | 1712 DeleteMenu (POPUP_SUBMENU_ID); |
1714 | 1713 |
1715 #if 0 | 1714 #if 0 |
1716 /* Clean up extraneous mouse events which might have been generated | 1715 /* Clean up extraneous mouse events which might have been generated |