Re: gtk_entry_new and accented chars



but i cannot get the accented char from latin 1 code page on entry

In the GdkEventKey struct you have the keyval field. That is not a
character code in any encoding, it's a GDK "keyval". To get the
corresponding Unicode character (if any), use gdk_keyval_to_unicode
(). I'll let you figure out by yourself how to convert from a Unicode
character to Latin1.

--tml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]