Mercurial > emacs
changeset 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 | c56375806351 |
children | e4461ba10180 |
files | mac/ChangeLog mac/src/macmenu.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/ChangeLog Tue Sep 04 06:12:57 2001 +0000 +++ b/mac/ChangeLog Tue Sep 04 06:19:12 2001 +0000 @@ -1,5 +1,7 @@ 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.
--- a/mac/src/macmenu.c Tue Sep 04 06:12:57 2001 +0000 +++ b/mac/src/macmenu.c Tue Sep 04 06:19:12 2001 +0000 @@ -1702,14 +1702,13 @@ 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