* Callback used for all text windows. The window is popped down on any key * or button down event. It is destroyed if the main nethack code is done * with it. */ ARGSUSED*/
| 84 | */ |
| 85 | /*ARGSUSED*/ |
| 86 | void |
| 87 | dismiss_text(Widget w, XEvent *event, String *params, Cardinal *num_params) |
| 88 | { |
| 89 | struct xwindow *wp; |
| 90 | struct text_info_t *text_info; |
| 91 | |
| 92 | nhUse(event); |
| 93 | nhUse(params); |
| 94 | nhUse(num_params); |
| 95 | |
| 96 | wp = find_widget(w); |
| 97 | text_info = wp->text_information; |
| 98 | |
| 99 | nh_XtPopdown(wp->popup); |
| 100 | |
| 101 | if (text_info->blocked) { |
| 102 | exit_x_event = TRUE; |
| 103 | } else if (text_info->destroy_on_ack) { |
| 104 | destroy_text_window(wp); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | /* Dismiss when a non-modifier key pressed. */ |
| 109 | void |
no test coverage detected