Re: key-release-event not detected
- From: Loban A Rahman <loban ugcs caltech edu>
- To: Carlos Pereira <carlos pehoe civil ist utl pt>, Ian Bell <ian redtommo com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: key-release-event not detected
- Date: 14 Jun 2003 11:39:39 -0700
I already did. I have the following call, but it does nothing:
gtk_widget_add_events(GTK_WIDGET(applet), GDK_KEY_RELEASE_MASK);
Any other ideas? :-)
Cheers,
Loban
On Sat, 2003-06-14 at 09:02, Carlos Pereira wrote:
'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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
/-------------------------------------------------------------------\
| Loban Amaan Rahman <-- anagram of --> Aha! An Abnormal Man! |
| loban earthling net, loban caltech edu, http://loban.caltech.edu |
\-------------------------------------------------------------------/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]