* End a menu in this window, window must a type NHW_MENU. * We assign the keyboard accelerators as needed. */
(window, prompt)
| 788 | * We assign the keyboard accelerators as needed. |
| 789 | */ |
| 790 | void |
| 791 | Gem_end_menu(window, prompt) |
| 792 | winid window; /* menu to use */ |
| 793 | const char *prompt; /* prompt to for menu */ |
| 794 | { |
| 795 | if (window == WIN_ERR || mar_hol_win_type(window) != NHW_MENU) |
| 796 | panic(winpanicstr, window); |
| 797 | |
| 798 | /* Reverse the list so that items are in correct order. */ |
| 799 | mar_reverse_menu(); |
| 800 | |
| 801 | /* Put the prompt at the beginning of the menu. */ |
| 802 | mar_set_menu_title(prompt); |
| 803 | |
| 804 | mar_set_accelerators(); |
| 805 | } |
| 806 | |
| 807 | int |
| 808 | Gem_select_menu(window, how, menu_list) |
no test coverage detected