From: handa Date: Tue, 9 Mar 2004 06:22:34 +0000 (+0000) Subject: (load_input_method): If title is not specified, use the input method X-Git-Tag: REL-1-0-1~29 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b298641becf22fed26e40bcf6d7e3218bb56da3;p=m17n%2Fm17n-lib.git (load_input_method): If title is not specified, use the input method name as title. --- diff --git a/src/input.c b/src/input.c index 5f1c920..85aca27 100644 --- a/src/input.c +++ b/src/input.c @@ -739,6 +739,9 @@ load_input_method (MSymbol language, MSymbol name, MPlist *plist, MPLIST_DO (elt, maps) M17N_OBJECT_UNREF (MPLIST_VAL (elt)); M17N_OBJECT_UNREF (maps); + if (! title) + title = mtext_from_data (MSYMBOL_NAME (name), MSYMBOL_NAMELEN (name), + MTEXT_FORMAT_US_ASCII); im_info->title = title; im_info->externals = externals; im_info->macros = macros;