From 45ddab9836c2acfcfc0eb52dea9b01296476ecb9 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 1 Mar 2007 11:54:37 +0000 Subject: [PATCH] (reload_im_info): Setup cmds, vars, and title of im_info. (check_variable_value): Fix the return value. --- src/input.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index 6a844a0..e7bbcff 100644 --- a/src/input.c +++ b/src/input.c @@ -1581,6 +1581,19 @@ reload_im_info (MInputMethodInfo *im_info) fini_im_info (im_info); load_im_info (plist, im_info); M17N_OBJECT_UNREF (plist); + if (! im_info->cmds) + im_info->cmds = mplist (); + if (! im_info->vars) + im_info->vars = mplist (); + if (! im_info->title) + { + MSymbol name = im_info->name; + + im_info->title = (name == Mnil ? mtext () + : mtext_from_data (MSYMBOL_NAME (name), + MSYMBOL_NAMELEN (name), + MTEXT_FORMAT_US_ASCII)); + } return 1; } @@ -1898,7 +1911,7 @@ check_variable_value (MPlist *val, MPlist *global) } } - return (MPLIST_TAIL_P (valids)); + return (! MPLIST_TAIL_P (valids)); } /* Load variable defitions from PLIST into IM_INFO->vars. -- 1.7.10.4