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

Function destroy_message_window

win/X11/winmesg.c:208–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void
209destroy_message_window(struct xwindow *wp)
210{
211 if (wp->popup) {
212 nh_XtPopdown(wp->popup);
213 if (!wp->keep_window)
214 XtDestroyWidget(wp->popup), wp->popup = (Widget) 0;
215 }
216 if (wp->mesg_information) {
217 set_circle_buf(wp->mesg_information, 0); /* free buffer list */
218 free((genericptr_t) wp->mesg_information), wp->mesg_information = 0;
219 }
220 if (wp->keep_window)
221 XtRemoveCallback(wp->w, XtNexposeCallback, mesg_exposed,
222 (XtPointer) 0);
223 else
224 wp->type = NHW_NONE;
225}
226
227/* Redraw message window if new lines have been added. */
228void

Callers 1

X11_destroy_nhwindowFunction · 0.85

Calls 2

nh_XtPopdownFunction · 0.85
set_circle_bufFunction · 0.85

Tested by

no test coverage detected