Title: Error with gtk_text_buffer_insert_at_cursor () for unicode string

I wrote from home, but the message never appeared...
Well, here we go again:
I bought nokia 770 and the bluetooth keyboard, but my mother language is portuguese and I wasn´t capable to activate deadkeys for the funny chars ã, ç, ê and so on (xmodmap doesn´t work for that, no xorg.conf, etc).

So I hacked maemopad 1.5 to enforce accents.
With maemopad I developed my own GTK text editor for prototype, and after the buffer receive "^" and then an "A" char the program is supposed to write "Â" in the screen.

My prototype running x86 Linux GTK works fine for   gtk_text_buffer_insert_at_cursor (buffer, "\u00E2", -1), but when I try this for my gtk_signal for "key_press_event" in maemopad nothing happens. Nokia 770 displays funny chars, in fact the screen keyboard has dead keys for portuguese, but the same is not true for Bluetooth keyboard.

The only and last problem for my Maemopad hack for accents with bluetooth keyboards is this single line:
 
gtk_text_buffer_insert_at_cursor (buffer, "\u00E2", -1);

If you try ASCII char, it works!

gtk_text_buffer_insert_at_cursor (buffer, "a", -1);

And for my x86 Linux GTK prototype unicode works too!

Some idea?

Alessandro

Essa mensagem é destinada exclusivamente ao seu destinatário e pode conter informações confidenciais, protegidas por sigilo profissional ou cuja divulgação seja proibida por lei. O uso não autorizado de tais informações é proibido e está sujeito às penalidades cabíveis.

This message is intended exclusively for its addressee and may contain information that is confidential and protected by a professional privilege or whose disclosure is prohibited by law. Unauthorized use of such information is prohibited and subject to applicable penalties.

_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to