From 3b298641becf22fed26e40bcf6d7e3218bb56da3 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 9 Mar 2004 06:22:34 +0000 Subject: [PATCH] (load_input_method): If title is not specified, use the input method name as title. --- src/input.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 1.7.10.4