Exemplo n.º 1
0
static void
QuickPhraseLaunch(QuickPhraseState *qpstate, int key, boolean useDup,
                  boolean append)
{
    qpstate->curTriggerKey[0].sym = key;
    qpstate->useDupKeyInput = useDup;
    qpstate->append = append;
    _QuickPhraseLaunch(qpstate);
    FcitxUIUpdateInputWindow(qpstate->owner);
}
Exemplo n.º 2
0
void* QuickPhraseLaunch(void* arg, FcitxModuleFunctionArg args)
{
    const int* key = args.args[0];
    const boolean* useDup = args.args[1];
    const boolean* append = args.args[2];
    QuickPhraseState *qpstate = (QuickPhraseState*) arg;
    qpstate->curTriggerKey[0].sym = *key;
    qpstate->useDupKeyInput = *useDup;
    qpstate->append = *append;
    _QuickPhraseLaunch(qpstate);
    FcitxUIUpdateInputWindow(qpstate->owner);

    return (void*)true;
}