[Gpephone-devel] ptim: engine load count

Srella srella.ft at gmail.com
Tue Jul 24 05:26:38 CEST 2007


Hi patrick,

I tried it last week and found that different name in IME_InputMethod
keyboard_im_info[] meets different treatment.
The loading order is unpredictable since the name of engines are stored in a
hash table when launching. But I did
succeed in altering the order with no name was changed several months ago,
I'm not sure how I made it now.

Don't worry. There is another way you could employ which is able to
guarantee you to go ahead. That is, adjusting
the element order in IME_InputMethod keyboard_im_info[] to the launching
order displayed on terminal, then change
this_ptim->ptim_engines_index(immanager - gtkimcontextptim.c -
gtk_im_context_ptim_init()) to number input method.
(If your T9 was the first, number input method is the second, change
this_ptim->ptim_engines_index from 0 to 1)
I have succeeded in adding a new IM into ptim and switching the three in
this way.

This is just a temporary resolution. We have planned to change the loading
method, getting rid of hash table and
accounting on the configure file(imconfig) completely. The loading order and
which engine(s) to load will comply
with the file. It would be much easier when adding, deleting or hiding an
engine then.

There will be still many trivial problems accompanied when adding a new IM.
Good luck!

Best regards
Srella
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linuxtogo.org/pipermail/gpephone-devel/attachments/20070724/eba1d345/attachment.htm 


More information about the Gpephone-devel mailing list