Re: key-release-event not detected
- From: carlos pehoe civil ist utl pt (Carlos Pereira)
- To: gtk-app-devel-list gnome org
- Subject: Re: key-release-event not detected
- Date: Sat, 14 Jun 2003 17:02:30 +0100 (WEST)
'm having trouble getting a callback called when a "key-release-event"
occurs. I do the following:
But the applet_key_cb() callback only gets called on "key-press-event"s.
Any ideas what I'm doing wrong?
You need to add key-release-event to the list
of events that gtk is monitoring, by default only
key-press-event is checked, for performance reasons.
look for something as this (gtk1.2):
gtk_widget_set_events (GTK_WIDGET (gl_area), GDK_EXPOSURE_MASK |
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK |
GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK);
Carlos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]