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

Function abort_button

win/X11/winX.c:1960–1971  ·  view source on GitHub ↗

Callback for getline dialog widget. */ ARGSUSED */

Source from the content-addressed store, hash-verified

1958/* Callback for getline dialog widget. */
1959/* ARGSUSED */
1960static void
1961abort_button(Widget w, XtPointer client_data, XtPointer call_data)
1962{
1963 Widget dialog = (Widget) client_data;
1964
1965 nhUse(w);
1966 nhUse(call_data);
1967
1968 Strcpy(getline_input, CANCEL_STR);
1969 nh_XtPopdown(XtParent(dialog));
1970 exit_x_event = TRUE;
1971}
1972
1973static void
1974release_getline_widgets(void)

Callers

nothing calls this directly

Calls 1

nh_XtPopdownFunction · 0.85

Tested by

no test coverage detected