| 206 | } |
| 207 | |
| 208 | void |
| 209 | destroy_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. */ |
| 228 | void |
no test coverage detected