On Mon, 2009-02-02 at 15:06 +0800, Liu, Raymond wrote:
> Hi Wu Peng
>
> >> Hi
> >> Pardon me for the silly question.
> > Not silly, but difficult to answer. Correct me, if something is
> >wrong.
>
> Thanks for your reply :)
You are welcome.
>
> >> 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".
> >
>
> So scim-bridge-client-gtk is actually a gtk im module which communicate
> with the agent side and eventually it will emit signals which can be
> accepted by GTK, is that right?
>
Right, gtk use gtk_im_context_get_preedit_string to get preedit
string.
> So, Say if I want to implement another im module for the other UI
> framework, then it must already have some similar mechanism like
> gtk-imcontext, right?
>
Yes, Qt use QInputContext, I don't know other UI frameworks.
> > 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.
>
> I can see that except im-scim-bridge.so, there is also im-scim which is
> belonging to the scim package. So what's the different of these two IM
> modules?
im-scim.so is written in C++. im-scim-bridge.so is written in C, and
connect to the scim-bridge agent(in C++), scim-bridge will connect to
the usual scim socket.
im-scim-bridge.so and im-scim.so will be loaded in UI applications, so
im-scim-bridge.so can avoid load C++ in gtk apps.
>
> Raymond
>
Peng Wu
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-
http://p.sf.net/sfu/adobe-com_______________________________________________
Scim-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/scim-devel