On Sat, 2009-01-24 at 14:34 +0800, Liu, Raymond wrote:
> Hi
> Pardon me for the silly question.
Not silly, but difficult to answer. Correct me, if something is
wrong.
> I just start to look into the Input method on Linux.
> I can see that SCIM using gtkimcontext to communicate with GTK widgets. While I read the API for GTKIMContext, I can see there are focus_in, focus_out etc. But I fail to see and API say send the text it self to the editable widget. So I am wondering how is this been done (Especially for CJK?)
>
> Is that still need XIM protocol to send xevents to the X and then to GTK widget?
> Or directly call the widget's method, something like GTKEntry.settext(xxx) ?
When any gtk im module want to change the preedit string, it
should emit signals "preedit-changed", "preedit-start", "preedit-end".
When any gtk im module want to commit string to widget, it
should emit signal "commit".
When your gtk applications use gtk xim im module, it will use
XIM to communicate to scim.
When your gtk applications use gtk scim/scim-bridge im module,
it will by pass the XIM, using socket instead. Also if you write a
custom im module, you can use any thing you want to deal with the input
key codes.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword_______________________________________________
Scim-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/scim-devel