MCPcopy Create free account
hub / github.com/SimHacker/micropolis / MapFrame

Function MapFrame

micropolis-activity/src/tk/tkframe.c:479–507  ·  view source on GitHub ↗
(clientData)

Source from the content-addressed store, hash-verified

477 * Results:
478 * None.
479 *
480 * Side effects:
481 * The frame given by the clientData argument is mapped.
482 *
483 *----------------------------------------------------------------------
484 */
485
486static void
487MapFrame(clientData)
488 ClientData clientData; /* Pointer to frame structure. */
489{
490 Frame *framePtr = (Frame *) clientData;
491
492 /*
493 * Wait for all other background events to be processed before
494 * mapping window. This ensures that the window's correct geometry
495 * will have been determined before it is first mapped, so that the
496 * window manager doesn't get a false idea of its desired geometry.
497 */
498
499 do {
500 if (Tk_DoOneEvent(TK_IDLE_EVENTS) == 0) {
501 break;
502 }
503
504 /*
505 * After each event, make sure that the window still exists,
506 * and quit if the window has been destroyed.
507 */
508
509 if (framePtr->tkwin == NULL) {
510 return;

Callers

nothing calls this directly

Calls 2

Tk_MapWindowFunction · 0.85
Tk_DoOneEventFunction · 0.70

Tested by

no test coverage detected