add: if (mePtr->state == ENTRY_ACTIVE) { mePtr->state = ENTRY_NORMAL; } mePtr->entryFlags &= ~ENTRY_PLATFORM_FLAG1;
context: RecursivelyClearActiveMenu(    TkMenu *menuPtr)		/* The menu to reset. */{    int i;    TkMenuEntry *mePtr;        TkActivateMenuEntry(menuPtr, -1);    MenuSelectEvent(menuPtr);    for (i = 0; i < menuPtr->numEntries; i++) {    	mePtr = menuPtr->entries[i];    	if (mePtr->type == CASCADE_ENTRY) {    	    if ((mePtr->childMenuRefPtr != NULL)    	    	    && (mePtr->childMenuRefPtr->menuPtr != NULL)) {    	    	RecursivelyClearActiveMenu(mePtr->childMenuRefPtr->menuPtr);    	    }    	}    }}