From: handa Date: Thu, 29 Mar 2007 11:42:30 +0000 (+0000) Subject: (setup_input_methods): Use mplist_put_func. X-Git-Tag: FLT-base~97 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50e399c8f60edff28688c49bf70a922b62eb0e69;p=m17n%2Fm17n-lib.git (setup_input_methods): Use mplist_put_func. --- diff --git a/example/medit.c b/example/medit.c index 067b2ec..3819c38 100644 --- a/example/medit.c +++ b/example/medit.c @@ -2289,16 +2289,16 @@ setup_input_methods (int with_xim, char *initial_input_method) qsort (input_method_table, num_input_methods, sizeof input_method_table[0], compare_input_method); - mplist_put (minput_driver->callback_list, Minput_status_start, - (void *) input_status); - mplist_put (minput_driver->callback_list, Minput_status_draw, - (void *) input_status); - mplist_put (minput_driver->callback_list, Minput_status_done, - (void *) input_status); - mplist_put (minput_driver->callback_list, Minput_get_surrounding_text, - (void *) surrounding_text_handler); - mplist_put (minput_driver->callback_list, Minput_delete_surrounding_text, - (void *) surrounding_text_handler); + mplist_put_func (minput_driver->callback_list, Minput_status_start, + M17N_FUNC (input_status)); + mplist_put_func (minput_driver->callback_list, Minput_status_draw, + M17N_FUNC (input_status)); + mplist_put_func (minput_driver->callback_list, Minput_status_done, + M17N_FUNC (input_status)); + mplist_put_func (minput_driver->callback_list, Minput_get_surrounding_text, + M17N_FUNC (surrounding_text_handler)); + mplist_put_func (minput_driver->callback_list, Minput_delete_surrounding_text, + M17N_FUNC (surrounding_text_handler)); current_input_context = NULL; current_input_method = -1;