Re: Xwindow Input Method


Subject: Re: Xwindow Input Method
From: hj (huangj@citiz.net)
Date: Wed Mar 01 2000 - 05:59:44 CST


Writing XIM class is very easy. Member functions like this

class XIM
{
public:
    XIM(GtkWidget *widget);
    ~XIM(void);
    focusIn();
    focusOut();
}

Yout should invoke focusIn() or focusOut() when the widget focus in or out.
Then the widget support XIM. I can send the code if anyone want.

----- Original Message -----
发件人: Paul Rohr <paul@abisource.com>
收件人: hj <huangj@bigfoot.com>; abiword-dev <abiword-dev@abisource.com>
发送时间: 2000年3月1日 8:38
主题: Re: Xwindow Input Method

> At 05:34 PM 2/29/00 +0800, hj wrote:
> >Only GtkText and GtkEntry widget support XIM in GTK. We can only input
> >Chinese in GtkText and GtkEntry. We must let toplevel window support XIM.
>
> OK. So, since the GTK sources are available, you should be able to figure
> out how those two widgets interact with the XIM code. I haven't studied
any
> of that code, but I'm presuming that somehow similar logic could be
invoked
> for toplevel GTK windows as well.
>
> If so, then the big question would be whether this additional
functionality
> should be added to the AbiWord sources or to the GTK sources. This one's
> definitely worth figuring out ahead of time, because if the code's going
> into GTK, it should use their very characteristic C-style APIs and calling
> conventions.
>
> I'll certainly defer to the GTK maintainers on that issue. If they want
the
> code, it should definitely go there. Otherwise, we'd be happy to have it
in
> our tree.
>
> Paul
>
> PS: Havoc, are you still lurking on this list? Sounds like this one's up
> your alley. ;-)



This archive was generated by hypermail 2b25 : Wed Mar 01 2000 - 06:09:31 CST