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

Function gnome_delete_nhwindow_by_reference

outdated/win/gnome/gnbind.c:467–479  ·  view source on GitHub ↗

This widget is being destroyed before its time-- * clear its entry from the windowlist. */

Source from the content-addressed store, hash-verified

465 * clear its entry from the windowlist.
466*/
467void
468gnome_delete_nhwindow_by_reference(GtkWidget *menuWin)
469{
470 int i;
471
472 for (i = 0; i < MAXWINDOWS; i++) {
473 if (gnome_windowlist[i].win == menuWin) {
474 gnome_windowlist[i].win = NULL;
475 gnome_windowlist[i].type = 0;
476 break;
477 }
478 }
479}
480
481/* Clear the given window, when asked to. */
482void

Callers 1

ghack_menu_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected