RE: [gtk-list] stopping arrow-moves-focus



On 15-Jun-98 nuke@bayside.net wrote:
> how would i stop the up/down arrows from moving the focus? what i'm trying
> to do is trap the arrow keys in a GtkEntry, but it's impossible if the
> GtkEntry never recieves the key code.

In your key_press callback, if event->keyval == GDK_Up / GDK_Down etc.,
do a gtk_signal_emit_stop_by_name (GTK_OBJECT (widget), "key_press_event").

bye,
   Stefan



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