(clientData, eventPtr)
| 436 | * |
| 437 | * Side effects: |
| 438 | * When the window gets deleted, internal structures get |
| 439 | * cleaned up. When it gets exposed, it is redisplayed. |
| 440 | * |
| 441 | *-------------------------------------------------------------- |
| 442 | */ |
| 443 | |
| 444 | static void |
| 445 | FrameEventProc(clientData, eventPtr) |
| 446 | ClientData clientData; /* Information about window. */ |
| 447 | register XEvent *eventPtr; /* Information about event. */ |
| 448 | { |
| 449 | register Frame *framePtr = (Frame *) clientData; |
| 450 | |
| 451 | if ((eventPtr->type == Expose) && (eventPtr->xexpose.count == 0)) { |
| 452 | if ((framePtr->relief != TK_RELIEF_FLAT) && (framePtr->tkwin != NULL) |
| 453 | && !(framePtr->flags & REDRAW_PENDING)) { |
| 454 | Tk_DoWhenIdle(DisplayFrame, (ClientData) framePtr); |
| 455 | framePtr->flags |= REDRAW_PENDING; |
| 456 | } |
| 457 | } else if (eventPtr->type == DestroyNotify) { |
| 458 | Tcl_DeleteCommand(framePtr->interp, Tk_PathName(framePtr->tkwin)); |
| 459 | framePtr->tkwin = NULL; |
| 460 | if (framePtr->flags & REDRAW_PENDING) { |
| 461 | Tk_CancelIdleCall(DisplayFrame, (ClientData) framePtr); |
| 462 | } |
| 463 | Tk_CancelIdleCall(MapFrame, (ClientData) framePtr); |
nothing calls this directly
no test coverage detected