diff options
| author | Andrew Choi | 2001-09-04 06:19:12 +0000 |
|---|---|---|
| committer | Andrew Choi | 2001-09-04 06:19:12 +0000 |
| commit | 3428f2c48a370de1a8500c6f4f2a70fff2fe9df4 (patch) | |
| tree | bc09387615eab614557728f17877d85c12f94171 /mac/src | |
| parent | bc04fb2cf2a5993e12ca561461fc7763028d1c32 (diff) | |
| download | emacs-3428f2c48a370de1a8500c6f4f2a70fff2fe9df4.tar.gz emacs-3428f2c48a370de1a8500c6f4f2a70fff2fe9df4.zip | |
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.c | 5 |
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) | |||
| 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)); |
| 1712 | 1709 | ||
| 1710 | GetMenuItemRefCon (menu, menu_item_selection, &menu_item_selection); | ||
| 1711 | |||
| 1713 | DeleteMenu (POPUP_SUBMENU_ID); | 1712 | DeleteMenu (POPUP_SUBMENU_ID); |
| 1714 | 1713 | ||
| 1715 | #if 0 | 1714 | #if 0 |