Re: [gtk-list] how to handle key presses?!?
- From: Janne Lof <jlof mail student oulu fi>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] how to handle key presses?!?
- Date: Wed, 16 Sep 1998 02:40:29 +0300 (EDT)
On Sun, 13 Sep 1998, finklestein wrote:
> i am still trying to get key press events to work. ifound out why g_print
> was only printing after the program exitted, there needs to be a '\n' in
> the printed data. i suppose that flushes the output.
> at any rate, i've poured over all the related example code i could find,
> the header files and the gtk code itself. i haven't found any code yet
> that explicitly shows the use of keypress events. would someone please
> help me out? i have also included the source file itself.
You need to do three things to get keypress events.
/* 1. set event mask for widget */
/* 2. connect signal handlers */
/* 3. set focus to widget you want to receive keypress and/or key release
] [Thread Prev