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

Function EntryFocusProc

micropolis-activity/src/tk/tkentry.c:1698–1722  ·  view source on GitHub ↗
(clientData, gotFocus)

Source from the content-addressed store, hash-verified

1696
1697
1698/*
1699 *----------------------------------------------------------------------
1700 *
1701 * EntryFocusProc --
1702 *
1703 * This procedure is called whenever the entry gets or loses the
1704 * input focus. It's also called whenever the window is reconfigured
1705 * while it has the focus.
1706 *
1707 * Results:
1708 * None.
1709 *
1710 * Side effects:
1711 * The cursor gets turned on or off.
1712 *
1713 *----------------------------------------------------------------------
1714 */
1715
1716static void
1717EntryFocusProc(clientData, gotFocus)
1718 ClientData clientData; /* Pointer to structure describing entry. */
1719 int gotFocus; /* 1 means window is getting focus, 0 means
1720 * it's losing it. */
1721{
1722 register Entry *entryPtr = (Entry *) clientData;
1723
1724 if (entryPtr->cursorBlinkHandler != NULL) {
1725 Tk_DeleteTimerHandler(entryPtr->cursorBlinkHandler);

Callers 1

ConfigureEntryFunction · 0.85

Calls 3

Tk_DeleteTimerHandlerFunction · 0.70
Tk_CreateTimerHandlerFunction · 0.70
EventuallyRedrawFunction · 0.70

Tested by

no test coverage detected