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

Function gnome_start_menu

outdated/win/gnome/gnbind.c:664–675  ·  view source on GitHub ↗

Start using window as a menu. You must call start_menu() before add_menu(). After calling start_menu() you may not putstr() to the window. Only windows of type NHW_MENU may be used for menus. */

Source from the content-addressed store, hash-verified

662 be used for menus.
663*/
664void
665gnome_start_menu(winid wid, unsigned long mbehavior)
666{
667 if (wid != -1) {
668 if (gnome_windowlist[wid].win == NULL
669 && gnome_windowlist[wid].type != 0) {
670 gnome_create_nhwindow_by_id(gnome_windowlist[wid].type, wid);
671 }
672 gtk_signal_emit(GTK_OBJECT(gnome_windowlist[wid].win),
673 ghack_signals[GHSIG_START_MENU]);
674 }
675}
676
677/*
678add_menu(windid window, int glyph, const anything identifier,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected