OLD | NEW |
1 #ifndef IBUS_1_1 | 1 #ifndef IBUS_1_1 |
2 gboolean ibus_chewing_engine_process_key_event_1_2(IBusEngine *engine, | 2 gboolean ibus_chewing_engine_process_key_event_1_2(IBusEngine *engine, |
3 guint keysym_ignore, guint keycode, guint modifiers){ | 3 guint keysym_ignore, guint keycode, guint modifiers){ |
4 if (modifiers & IBUS_RELEASE_MASK){ | 4 if (modifiers & IBUS_RELEASE_MASK){ |
5 /* Skip release event */ | 5 /* Skip release event */ |
6 return TRUE; | 6 return TRUE; |
7 } | 7 } |
8 IBusChewingEngine *self=IBUS_CHEWING_ENGINE(engine); | 8 IBusChewingEngine *self=IBUS_CHEWING_ENGINE(engine); |
9 guint keysym=ibus_keymap_lookup_keysym (self->keymap_us,keycode,modifiers); | 9 guint keysym=ibus_keymap_lookup_keysym (self->keymap_us,keycode,modifiers); |
10 return ibus_chewing_engine_process_key_event(engine, keysym, modifiers); | 10 return ibus_chewing_engine_process_key_event(engine, keysym, modifiers); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 } | 191 } |
192 | 192 |
193 }else{ | 193 }else{ |
194 result=FALSE; | 194 result=FALSE; |
195 } | 195 } |
196 if (!result){ | 196 if (!result){ |
197 return FALSE; | 197 return FALSE; |
198 } | 198 } |
199 return self_update(self); | 199 return self_update(self); |
200 } | 200 } |
| 201 |
| 202 void ibus_chewing_engine_candidate_clicked(IBusEngine *engine, guint index, |
| 203 guint button, guint state) { |
| 204 G_DEBUG_MSG(3,"[I3] cadidate_clicked(-, %u, %u, %u) ... proceed.", index, bu
tton, state); |
| 205 IBusChewingEngine *self=IBUS_CHEWING_ENGINE(engine); |
| 206 self_handle_candidate_clicked(self, index, button, state); |
| 207 } |
OLD | NEW |