Re: focus questions



<pavel klebanov ne mediaone net> writes:
Thanks! Another one. How do I prevent the window (within which my widgets
are) from getting the signal. For instance, I want to use the arrow to
move something but instead focus shifts to another widget.

To override that it's easiest to connect to key_press_event on the
toplevel GtkWindow, then gtk_signal_emit_stop_by_name() the 
key_press_event if it's an arrow key.

Havoc




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