equal
deleted
inserted
replaced
88 delete m_punct_prop; |
88 delete m_punct_prop; |
89 delete m_setup_prop; |
89 delete m_setup_prop; |
90 } |
90 } |
91 |
91 |
92 static CKeyEvent |
92 static CKeyEvent |
93 translate_key(guint key_val, guint key_code, guint modifiers) |
93 translate_key(guint key_val, guint /*key_code*/, guint modifiers) |
94 { |
94 { |
95 // XXX: may need to move this logic into CKeyEvent |
95 // XXX: may need to move this logic into CKeyEvent |
96 if (isprint(key_val) && !isspace(key_val) && !(modifiers & IM_CTRL_MASK)) { |
96 if (isprint(key_val) && !isspace(key_val) && !(modifiers & IM_CTRL_MASK)) { |
97 // we only care about key_val here |
97 // we only care about key_val here |
98 return CKeyEvent(0, key_val, modifiers); |
98 return CKeyEvent(0, key_val, modifiers); |
161 { |
161 { |
162 m_pv->onCandidatePageRequest(1, true /* relative */); |
162 m_pv->onCandidatePageRequest(1, true /* relative */); |
163 } |
163 } |
164 |
164 |
165 void |
165 void |
166 EngineImpl::property_activate (const std::string& property, unsigned state) |
166 EngineImpl::property_activate (const std::string& property, unsigned /*state*/) |
167 { |
167 { |
168 if (m_status_prop->toggle(property)) { |
168 if (m_status_prop->toggle(property)) { |
169 m_pv->setStatusAttrValue(CIMIWinHandler::STATUS_ID_CN, |
169 m_pv->setStatusAttrValue(CIMIWinHandler::STATUS_ID_CN, |
170 m_status_prop->state()); |
170 m_status_prop->state()); |
171 } else if (m_letter_prop->toggle(property)) { |
171 } else if (m_letter_prop->toggle(property)) { |