[Anthy-dev 2779] Re: uim-gtk

アーカイブの一覧に戻る

Etsushi Kato ek.ka****@gmail*****
2005年 12月 27日 (火) 17:10:46 JST


05/12/26 に Etsushi Kato<ek.ka****@gmail*****> さんは書きました:
> 05/12/24 に YamaKen<yamak****@bp*****> さんは書きました:
> > At Wed, 21 Dec 2005 00:38:44 +0900,
> > ek.ka****@gmail***** wrote:
> > >
> > > 05/12/21 に YamaKen<yamak****@bp*****> さんは書きました:
> > > > それと、GTK+の場合はsnooperを使わないとkey releaseが取れなかった
> > > > と思います。今後はこれを活用する方向に行くので取れないとまずいで
> > > > す。
> > >
> > > いえ、特に snooper でなければ key release が取れないということ
> > > はないと思います。例えば、gtkentry でも、key release において、
> > > filter_keypress を呼んでいます。
>
> > でもこれundocumented featureですよね? widget開発者の間ではどの程
> > 度の合意が取れてるんでしょうか。将来的には正式にfilter_keyとかに
> > 改名されたりする事になってるんでしょうか。
>
> どうなんでしょう? 少なくとも gtk+ 標準の入力可能な widget である
> gtkentry, gtktextview どちらとも、key release event を filter してい
> ます。また gnumeric, dia, inkscape といった有名なものでも、独自の
> widget において key release を filter しているようです。
>
> もちろん、忘れているアプリケーションも多くあると思いますので、
> それらについては個別に指摘するしかないような気もしますけど。
>
> gtk+ の API Reference では、
>     Allow an input method to internally handle a key press event. If this
>     function returns TRUE, then no further processing should be done
>     for this keystroke.
> となっているので、"handle a key press/release event" とでも直してもう
> ように指摘してみます。

さっそく以下のように直してもらえました。
/**
 * gtk_im_context_filter_keypress:
 * @context: a #GtkIMContext
 * @event: the key event
 *
 * Allow an input method to internally handle key press and release
 * events. If this function returns %TRUE, then no further processing
 * should be done for this key event.
 *
 * Return value: %TRUE if the input method handled the key event.
 *
 **/

http://bugzilla.gnome.org/show_bug.cgi?id=324996
--
Etsushi Kato
ek.ka****@gmail*****



Anthy-dev メーリングリストの案内
アーカイブの一覧に戻る