Re: [gtk-list] Re: Ignoring keypresses




Anders Melchiorsen <and@kampsax.dtu.dk> writes: 
> With this in mind, _is there a better way to do it than what I posted
> previously_? I am thinking of adding a keyboard handler that ignores
> everything and another handler that is activated after some (short)
> time and disables the first handler.
> 

The best way to do it is probably with an event filter, see
gdk_event_handler_set ().

Or just connect to key_press_event on the window and
gtk_signal_emit_stop_by_name().

Havoc




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