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

Function gnome_destroy_nhwindow

outdated/win/gnome/gnbind.c:514–526  ·  view source on GitHub ↗

Destroy will dismiss the window if the window has not * already been dismissed. */

Source from the content-addressed store, hash-verified

512 * already been dismissed.
513*/
514void
515gnome_destroy_nhwindow(winid wid)
516{
517 if ((wid == WIN_MAP) || (wid == WIN_MESSAGE) || (wid == WIN_STATUS)) {
518 /* no thanks, I'll do these myself */
519 return;
520 }
521 if (wid != -1 && gnome_windowlist[wid].win != NULL) {
522 gtk_widget_destroy(gnome_windowlist[wid].win);
523 gnome_windowlist[wid].win = NULL;
524 gnome_windowlist[wid].type = 0;
525 }
526}
527
528/* Next output to window will start at (x,y), also moves
529 displayable cursor to (x,y). For backward compatibility,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected