int select_menu(windid window, int how, menu_item **selected) -- Return the number of items selected; 0 if none were chosen, -1 when explicitly cancelled. If items were selected, then selected is filled in with an allocated array of menu_item structures, one for each selected line. The caller must free th
| 771 | create_nhwindow() time. |
| 772 | */ |
| 773 | int |
| 774 | gnome_select_menu(winid wid, int how, MENU_ITEM_P **selected) |
| 775 | { |
| 776 | int nReturned = -1; |
| 777 | |
| 778 | if (wid != -1 && gnome_windowlist[wid].win != NULL |
| 779 | && gnome_windowlist[wid].type == NHW_MENU) { |
| 780 | nReturned = ghack_menu_window_select_menu(gnome_windowlist[wid].win, |
| 781 | selected, how); |
| 782 | } |
| 783 | |
| 784 | return nReturned; |
| 785 | } |
| 786 | |
| 787 | /* |
| 788 | -- Indicate to the window port that the inventory has been changed. |
nothing calls this directly
no test coverage detected