Re: key_release_event problem




David Sundqvist <azzie@netpolicy.com> writes:

> In a project I'm working on I'm trying to install a signal handler for a
> key_release_event. However, the signal handler didnt get called when a key
> was released, so I've compiled gtk with debug options turned on. The
> output from a simple test program appears to show that events for
> keypresses are generated correctly, but it seems that there are no key
> release events generated. Am I missing something, or is there a bug here?

Key release events are not in the event mask for any widget
by default.

Does:

 gtk_widget_set_events (widget, GDK_KEY_RELEASE_MASK);

help?

                                        Owen



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