(clientData, gotFocus)
| 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 | |
| 1716 | static void |
| 1717 | EntryFocusProc(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); |
no test coverage detected