Destroy will dismiss the window if the window has not * already been dismissed. */
| 512 | * already been dismissed. |
| 513 | */ |
| 514 | void |
| 515 | gnome_destroy_nhwindow(winid wid) |
| 516 | { |
| 517 | if ((wid == WIN_MAP) || (wid == WIN_MESSAGE) || (wid == WIN_STATUS)) { |
| 518 | /* no thanks, I'll do these myself */ |
| 519 | return; |
| 520 | } |
| 521 | if (wid != -1 && gnome_windowlist[wid].win != NULL) { |
| 522 | gtk_widget_destroy(gnome_windowlist[wid].win); |
| 523 | gnome_windowlist[wid].win = NULL; |
| 524 | gnome_windowlist[wid].type = 0; |
| 525 | } |
| 526 | } |
| 527 | |
| 528 | /* Next output to window will start at (x,y), also moves |
| 529 | displayable cursor to (x,y). For backward compatibility, |
nothing calls this directly
no outgoing calls
no test coverage detected