(load_input_method): If title is not specified, use the input method
authorhanda <handa>
Tue, 9 Mar 2004 06:22:34 +0000 (06:22 +0000)
committerhanda <handa>
Tue, 9 Mar 2004 06:22:34 +0000 (06:22 +0000)
name as title.

src/input.c

index 5f1c920..85aca27 100644 (file)
@@ -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;