void InputContext::commit_cb(void *ptr, const char *str) { InputContext *ic = (InputContext *)ptr; XimIC *xic = ic->get_ic(); ic->clear_pe_stat(); ic->update_preedit(); xic->commit_string(str); }
void InputContext::clear_cb(void *ptr) { InputContext *ic = (InputContext *)ptr; ic->clear_pe_stat(); }