RE: [gtk-list] stopping arrow-moves-focus
- From: Stefan Jeske <stefan gtk org>
- To: gtk-list redhat com
- Subject: RE: [gtk-list] stopping arrow-moves-focus
- Date: Mon, 15 Jun 1998 10:58:49 +0200 (CEST)
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]