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 <[EMAIL PROTECTED]>
�ռ���: hj <[EMAIL PROTECTED]>; abiword-dev <[EMAIL PROTECTED]>
����ʱ��: 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. ;-)