Re: reading keyboard



On Mon, 2003-05-19 at 04:47, Shiraz Baig wrote:
> Excellent!, this is exactly what I wanted 
> (event->string). I wonder, why did I not think of
> earlier? Sometimes, one tends to miss the obvious.
> 
> Thanks Mr pennington, I have my problem solved. 
> 
> I am presently, not into internationalization, so I
> need not worry for those refinements :-)

You *really* don't want event->string; it's very much
there oly for backwards compat. Please read the docs on it:

http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html#GdkEventKey

If you can't use an input method, use gdk_keyval_to_unicode(),
g_unichar_to_utf8().

Regards,
                                  Owen





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