[maemo-developers] Word completion in Fremantle

From: Cornelius Hald hald at icandy.de
Date: Sat Nov 7 22:38:14 EET 2009
On Sat, 2009-11-07 at 19:12 +0000, Cornelius Hald wrote:
> on_preedit_changed() is called only one time during startup and with a
> bogus parameter. It might be that I should use HILDON_TYPE_IM_CONTEXT as
> type, but that's not possible, because the header file
> hildon-im-context.h is missing from the SDK.

Ok, it was my fault that on_preedit_changed() was only called once. I
forgot to return TRUE at the end of the function. Now it's called every
time the preedit is changed and the parameter is a correct GtkIMContext.

So far so good, now I have the correct IMContext. The problem is, that I
cannot change the preedit text nor the preedit formatting. I can get
both, but those are copies so changing them has no effect.

I guess the only chance to dynamically change the formatting of the
preedit text is to create a subclass of GtkIMContext which would
basically be HildonIMContext but with a different implementation of
get_preedit_string().

Well, that's a bit overkill, so I'll have a look if I can change the
font handling in Conboy in a way to make it work with the default
HildonIMContext.

Cheers!
Conny


More information about the maemo-developers mailing list