How to disable Key events after a widget has been realized?



Hi, all

What I am doing is to filter out the "GDK_Return" key event after the Return key is pressed down, and re-accept this event again once the key is released. There is a gtk_widget_set_events, which is used before the widget is realized, and gtk_widget_add_events which is used after the widget is realized. But there is no "gtk_widget_remove_events"...
I even tried gdk_input_set_extension_events, but no luck :(
Any idea to solve it?

hamb

_________________________________________________________________
Get 10mb of inbox space with MSN Hotmail Extra Storage http://join.msn.com/?pgmarket=en-sg




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