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

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



hamb ka wrote:
> 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?

Just read a flag from a "key-release-event" callback.




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