X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2FChangeLog;h=a9c154e467785ca388a407be2cbc9b6268627747;hb=45e5ec16068aec42d4547ee5cb1871a63c6ee195;hp=fc9b3fa5acbf185ecd142fa841ae4d56a633bdc2;hpb=a69ce87eea6a41de8b9624573bd5c2fc6aac8ff9;p=m17n%2Fm17n-lib.git diff --git a/src/ChangeLog b/src/ChangeLog index fc9b3fa..a9c154e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,320 @@ +2007-03-29 Kenichi Handa + + These changes are to avoid unsafe casting of a function pointer. + + * face.h (enum MFaceProperty): Delete MFACE_HOOK_FUNC. + (struct MFace): New member hook. + + * face.c (serialize_face): Adjusted for the change of MFace. + (deserialize_face): Likewise. + (mface__init): Likewise. Use msymbol_put_func. + (mface__realize): Adjusted for the change of MFace. Avoid + compiler warning. + (mface_get_prop): Adjusted for the change of MFace. + (mface_put_prop): Likewise. + (mface_get_hook): New function. + (mface_put_hook): New function. + (mface_update): Adjusted for the change of MFace. + + * input-gui.c (win_callback): Use mplsit_get_func. + (minput__win_init): Use mplsit_put_func. + + * input.c (take_action_list): Use mplist_get_func. + (init_ic_info): Likewise. + (fini_ic_info): Likewise. + (minput_callback): Likewise. + (minput__init): Use mplist_put_func. + + * language.c (mlang__init): Use msymbol_put_func. + + * m17n-core.h (M17NFunc): New function type. + (M17N_FUNC): New macro. + (msymbol_put_func, msymbol_get_func): Extern them. + (mplist_put_func, mplist_get_func): Extern them. + + * m17n-gui.h (mface_get_hook, mface_put_hook): Extern them. + + * m17n-gui.c (mframe): Add a proper casting. + + * plist.h (struct MPlist): Make the member val a union. + (MPLIST_VAL): Adjusted for the above change. + (MPLIST_FUNC): New macro. + (MPLIST_VAL_FUNC_P, MPLIST_SET_VAL_FUNC_P): New macros. + + * plist.c (mplist_put_func, mplist_get_func): New functions. + + * symbol.c (msymbol__fini): Use MPLIST_VAL. + (msymbol_put_func, msymbol_get_func): New functions. + + * textprop.c (mtext_serialize): Use msymbol_get_func. + (mtext_deserialize): Likewise. + +2007-03-28 Kenichi Handa + + * input.c (get_candidate_list): Avoid unnecessary unref. + +2007-03-23 Kenichi Handa + + * database.c (mdatabase__update): Unref plist at the tail. + +2007-03-21 Kenichi Handa + + * input.c (update_custom_info): Fix for the case "name == Mnil && + extra != Mnil". + (config_command): Fix for the case that configuration is + cancelled. + (config_variable): Likewise. + (minput_config_command): If keyseqlist is an empty list, cancel + the customization. + (minput_config_variable) If value is an empty list, cancel the + customization. + (minput_save_config): Handle cancellation of config and customize + correctly. + +2007-03-15 Kenichi Handa + + * input.c (minput_config_variable): Check custom->vars (not + custom->cmds). + +2007-03-01 Kenichi Handa + + * input.c (reload_im_info): Setup cmds, vars, and title of + im_info. + (check_variable_value): Fix the return value. + + * database.c (mdatabase__check): If necessary, update database and + find a new file. + +2007-02-28 Kenichi Handa + + * database.c (get_dir_info): Set dir_info->status to + MDB_STATUS_OUTDATED. + (check_version): New function. + (register_database): Don't call find_database. + (register_databases_in_files): Don't register a database of + invalid version. + (mdatabase__update): Likewise. Avoid unnecessary scanning. + + * database.h (enum MDatabaseStatus): New membes MDB_STATUS_UPDATED + and MDB_STATUS_OUTDATED. + + * font.h (struct MFont): Types of members type, source, and + spacing changed to unsigned. + + * internal-gui.h (struct): Types of members category and type + changed to unsigned. + + * internal.h (struct MText): Types of members format and coverage + changed to unsigned. + + * m17n-core.h (M17NLIB_PATCH_LEVEL): Changed to 5. + (M17NLIB_VERSION_NAME): Changed to "1.3.5". + +2007-02-23 Kenichi Handa + + * input.c (Mpop): New variable. + (fully_initialize): Initialize Mpop. + (parse_action_list): Handle Mpop. + (take_action_list): Likewise. + (handle_key): When a key is unhandled, shift to the initial state + only if the current state has no branch action. + +>>>>>>> 1.284 +2007-02-12 Kenichi Handa + + * input.c (get_preceding_char): Unref mt if necessary. + (get_following_char): Likewise. + (parse_action_list): Fix handling of `insert' action as + candidates. + (get_candidate_list): Fix for handling (("CANDIDATE1" ...)). + (take_action_list): Check invalid candidate list. + +2007-02-06 Kenichi Handa + + * input.c (integer_value): Check also ic->produced for @-N. + +2007-01-26 Kenichi Handa + + * database.c (mdatabase__update): Check mdatabase__dir_list from + the tail. + + * font-ft.c (STRDUP_LOWER): Don't ignore the tailing spaces. + +2007-01-12 Kenichi Handa + + * input.c (handle_key): Handle a branch action of the initial + state correctly. + +2007-01-10 Kenichi Handa + + * m17n-gd.c (gd_render): Delete superfluous line. + +2006-12-26 Kenichi Handa + + * m17n.h (minput_callback): Extern it. + + * input.h (minput__callback): Delte extern. + + * input.c (get_surrounding_text): Adjusted for the change of + minput__callback to minput_callback. + (delete_surrounding_text): Likewise. + (minput_create_ic): Likewise. + (minput_destroy_ic): Likewise. + (minput_filter): Likewise. + (minput_set_spot): Likewise. + (minput_toggle): Likewise. + (minput_reset_ic): Likewise. + + (preedit_commit): Reset ic->candidate_index, ic->candidate_from, + and ic->candidate_to to 0. + (minput_callback): Renamed from minput__callback. + + * input-gui.c (win_callback): Adjusted for the change of + minput__callback to minput_callback. + +2006-12-15 Kenichi Handa + + * font-ft.c (ft_add_font): Fix typo. + +2006-12-06 Kenichi Handa + + * Version 1.3.4 released. + +2006-11-16 Kenichi Handa + + * input.c (parse_action_list): Allow (undo 0). + (adjust_markers): New function. + (preedit_insert, preedit_delete): Call adjust_markers. + (preedit_replace): New function. + (update_candidate): Call preedit_replace instead of preedit_insert + and preedit_delete. + (filter): When ic_info->commit_key_head is nonzero, shift input + event keys even if there's no committed text. + +2006-11-10 Kenichi Handa + + * input.h (MInputContextInfo): New member commit_key_head. + + * input.c (preedit_commit): Update ic_info->commit_key_head. + (take_action_list): Reset ic_info->commit_key_head on Mundo. + (filter): When committed, shift keys by ic_info->commit_key_head. + +2006-10-30 Kenichi Handa + + * input.c (preedit_delete): Fix typo. + (take_action_list): Print more debugging information. Allow + variable in arg of 'select' and `pushback'. + + * database.c (gen_database_name): Don't put extra space. + (load_database): Print debugging information. + (register_databases_in_files): New arg headlen. Callers changed. + (mdatabase__load_for_keys): Shorten debugging information. + (mdatabase_load): Don't print debugging information here. + +2006-10-27 Kenichi Handa + + * input.c (marker_code): New arg surrounding. Callers changed. + (surrounding_pos): Check if name[0] == '@'. + (integer_value): Fix for the change semantics of `@-N' and `@+N'. + (take_action_list): Likewise. + (get_preceding_char): If POS is zero, always call + get_surrounding_text. + +2006-10-19 Kenichi Handa + + * input.c (load_variables): Fix setting of `global'. + +2006-10-16 Kenichi Handa + + * draw.c (draw_background): Be sure to set *to_x. + (render_glyph_string): If from == to, just return. + +2006-10-18 Kenichi Handa + + * database.c (get_dir_info): Return NULL if the directory name is + too long. + (register_databases_in_files): Call register_database with + MDB_STATUS_AUTO. + (mdatabase__update): Fix logic. Call register_database with + MDB_STATUS_AUTO. + (mdatabase_define): Call register_database with + MDB_STATUS_EXPLICIT. + + * input.c (delete_surrounding_text): Be sure to set members + preceding_text and following_text to NULL. + (shift_state): Save variable values in ic_info->vars_saved. + (preedit_commit): Don't print debug information here. Don't + change ic_info->keys here. + (get_candidate_list): Don't ref plist. + (take_action_list): Don't unref return value of + get_candidate_list. For undo, reset ic->produced and recover + ic_info->vars. Be sure to set ic->candidate_list to NULL after + unref it. + (init_ic_info): Set ic_info->vars_saved. + (fini_ic_info): Unref ic_info->vars_saved. + (re_init_ic): Be sure to set ic->candidate_list to NULL after + unref it. + (filter): Be sure to set members preceding_text and following_text + to NULL. Print debug information about produced text. Delete + processed keys from ic_info->keys. + + * input.h (MInputContextInfo): New member vars_saved. + +2006-10-16 Kenichi Handa + + * database.c (mdatabase__update): Fix the way to get db_info. + +2006-10-02 Kenichi Handa + + * font.h (struct MFont): New member `multiple_sizes'. Bit-size of + `size' changed to 24. + + * font.c (xlfd_unparse_name): Adjusted for the change of + MFont->size. + (font_score): Likewise. + (mfont__set_spec_from_face): Set spec->multiple_sizes to 0. + + * m17n-X.c (MFontX, _MFontX): Deleted. + (SET_SIZE, HAVE_SIZE): Deleted. + (free_display_info): Adjusted for the change of + disp_info->font_list format. + (xfont_registry_list): Likewise. + (xfont_open): Likewise. + (xfont_list): Likewise. + (xfont_encode_char): Ignore size to find a realized font. + (MRealizedFontXft): Change the order of members to make it + compatible with MRealizedFontFT. + +2006-09-27 Kenichi Handa + + * font.c (mfont_match_p, mfont_open, mfont_encapsulate) + (mfont_close): Add comments. + + * mtext-lbrk.c (mtext_line_break): Add comment. + +2006-09-26 Kenichi Handa + + * input.c (minput_get_description): Handle description about + inclusion-only input methods. + +2006-09-21 Kenichi Handa + + * input.c (M_gettext): New variable. + (fully_initialize): Initialize M_gettext. + (check_description): New function. + (load_commands): Call check_description. + (config_all_commands): Be sure to unref pl. + (load_variables): Call check_description. + (config_all_variables): Be sure to unref pl. + (load_im_info): Call check_description. + + * internal.h [ENABLE_NLS]: Include and define _. + + * m17n-core.c (m17n_init_core) [ENABLE_NLS]: Call bindtextdoman + and bind_textdomain_codeset. + + * Makefile.am (AM_CPPFLAGS): Add -DGETTEXTDIR=... + 2006-09-15 Kenichi Handa * input.c (reload_im_info): Update custom and global info. @@ -3320,5 +3637,5 @@ Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the m17n library; if not, write to the Free -Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA -02111-1307, USA. +Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA.