MCPcopy Create free account
hub / github.com/NetHack/NetHack / gnome_end_menu

Function gnome_end_menu

outdated/win/gnome/gnbind.c:739–746  ·  view source on GitHub ↗

end_menu(window, prompt) -- Stop adding entries to the menu and flushes the window to the screen (brings to front?). Prompt is a prompt to give the user. If prompt is NULL, no prompt will be printed. ** This probably shouldn't flush the window any more (if ** it ever did). That should be sel

Source from the content-addressed store, hash-verified

737 ** it ever did). That should be select_menu's job. -dean
738*/
739void
740gnome_end_menu(winid wid, const char *prompt)
741{
742 if (wid != -1 && gnome_windowlist[wid].win != NULL) {
743 gtk_signal_emit(GTK_OBJECT(gnome_windowlist[wid].win),
744 ghack_signals[GHSIG_END_MENU], prompt);
745 }
746}
747
748/*
749int select_menu(windid window, int how, menu_item **selected)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected