[Gtkradiant] [Bug 816] Unexpected camera view behavior after remapping shortcuts

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Mon, 19 May 2003 09:23:15 -0500


------- Additional Comments From alex_eberts@videotron.ca  2003-05-19 09:23 -------
Arnout - I checked out the GTK+ FAQ to check whether keyup events are reported
in GTK2 by non-special keys and I found the following that may be useful:

from:  http://www.gtk.org/faq/

5.10 I have my signal connected to the the (whatever) event, but it seems I
don't catch it. What's wrong?

There is some special initialisation to do in order to catch some particular
events. In fact, you must set the correct event mask bit of your widget before
getting some particular events.

For example,

  gtk_widget_add_events(window, GDK_KEY_RELEASE_MASK);

lets you catch the key release events. If you want to catch every events, simply
us the GDK_ALL_EVENTS_MASK event mask.

All the event masks are defined in the gdktypes.h file

hope that helps - Alex