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

Function delete_text

win/X11/wintext.c:58–78  ·  view source on GitHub ↗

ARGSUSED*/

Source from the content-addressed store, hash-verified

56
57/*ARGSUSED*/
58void
59delete_text(Widget w, XEvent *event, String *params, Cardinal *num_params)
60{
61 struct xwindow *wp;
62 struct text_info_t *text_info;
63
64 nhUse(event);
65 nhUse(params);
66 nhUse(num_params);
67
68 wp = find_widget(w);
69 text_info = wp->text_information;
70
71 nh_XtPopdown(wp->popup);
72
73 if (text_info->blocked) {
74 exit_x_event = TRUE;
75 } else if (text_info->destroy_on_ack) {
76 destroy_text_window(wp);
77 }
78}
79
80/*
81 * Callback used for all text windows. The window is popped down on any key

Callers

nothing calls this directly

Calls 3

find_widgetFunction · 0.85
nh_XtPopdownFunction · 0.85
destroy_text_windowFunction · 0.85

Tested by

no test coverage detected