Re: key-release-event not detected
- From: Loban A Rahman <loban ugcs caltech edu>
- To: gtk-app-devel-list gnome org
- Cc: Carlos Pereira <carlos pehoe civil ist utl pt>, Ian Bell <ian redtommo com>
- Subject: Re: key-release-event not detected
- Date: 14 Jun 2003 11:57:53 -0700
The weird thing is, I did a get_events call on the applet widget first,
and printed out the mask, and it ONLY had BUTTON_PRESS and
BUTTON_RELEASE. Yet I've been attaching signals to enter-events,
leave-events, focus-events, and key-press-events, and those all work!
Cheers,
Loban
On Sat, 2003-06-14 at 11:39, Loban A Rahman wrote:
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]