From: handa Date: Tue, 26 Sep 2006 13:12:58 +0000 (+0000) Subject: (minput_get_description): Handle description about X-Git-Tag: REL-1-3-4~42 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3801477931992ade4f61b96c3dae00b1a06c467e;p=m17n%2Fm17n-lib.git (minput_get_description): Handle description about inclusion-only input methods. --- diff --git a/src/input.c b/src/input.c index 24fa372..43a4133 100644 --- a/src/input.c +++ b/src/input.c @@ -4572,10 +4572,16 @@ MText * minput_get_description (MSymbol language, MSymbol name) { MInputMethodInfo *im_info; + MSymbol extra; MINPUT__INIT (); - im_info = get_im_info (language, name, Mnil, Mdescription); + if (name != Mnil) + extra = Mnil; + else + extra = language, language = Mt; + + im_info = get_im_info (language, name, extra, Mdescription); if (! im_info || ! im_info->description) return NULL; M17N_OBJECT_REF (im_info->description);