Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: src/IBusChewingEngine-keys.c

Issue 2899003: Add signal handlers to ibus-chewing to listen for config changes. (Closed) Base URL: ssh://gitrw.chromium.org/ibus-chewing.git
Patch Set: Code Review fixes Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IBusChewingEngine.gob ('k') | src/main.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 } 209 }
210 return self_update(self); 210 return self_update(self);
211 } 211 }
212 212
213 void ibus_chewing_engine_candidate_clicked(IBusEngine *engine, guint index, 213 void ibus_chewing_engine_candidate_clicked(IBusEngine *engine, guint index,
214 guint button, guint state) { 214 guint button, guint state) {
215 G_DEBUG_MSG(3,"[I3] cadidate_clicked(-, %u, %u, %u) ... proceed.", index, bu tton, state); 215 G_DEBUG_MSG(3,"[I3] cadidate_clicked(-, %u, %u, %u) ... proceed.", index, bu tton, state);
216 IBusChewingEngine *self=IBUS_CHEWING_ENGINE(engine); 216 IBusChewingEngine *self=IBUS_CHEWING_ENGINE(engine);
217 self_handle_candidate_clicked(self, index, button, state); 217 self_handle_candidate_clicked(self, index, button, state);
218 } 218 }
219
220 void ibus_config_value_changed(IBusConfig *config, const gchar *section,
221 const gchar *name, GValue *value, gpointer userData) {
222 G_DEBUG_MSG(3,"[I3] ibus_config_value_changed(-, %s, %s, -, -)", section, na me);
223 IBusChewingEngine *self=IBUS_CHEWING_ENGINE(userData);
224 self_handle_config_value_changed(self, section, name, value);
225 }
OLDNEW
« no previous file with comments | « src/IBusChewingEngine.gob ('k') | src/main.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698