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

Function menu_cancel

win/X11/winmenu.c:411–425  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

409
410/* ARGSUSED */
411static void
412menu_cancel(Widget w, /* don't use - may be None */
413 XtPointer client_data, XtPointer call_data)
414{
415 struct xwindow *wp = (struct xwindow *) client_data;
416
417 nhUse(w);
418 nhUse(call_data);
419
420 if (wp->menu_information->is_active) {
421 select_none(wp);
422 wp->menu_information->cancelled = TRUE;
423 }
424 menu_popdown(wp);
425}
426
427/* ARGSUSED */
428static void

Callers 1

menu_deleteFunction · 0.85

Calls 2

select_noneFunction · 0.85
menu_popdownFunction · 0.85

Tested by

no test coverage detected