arrow keys change spin button value
- From: "R. Alblas" <r alblas demon nl>
- To: gtk-app-devel-list gnome org
- Subject: arrow keys change spin button value
- Date: Wed, 07 Apr 2004 21:22:37 +0200
In a drawable I want to use the arrow keys to scrol through a
picture. However, at the same time gtk uses the same arrow
keys to walk through buttons, and if a spin button is reached
the value is altered.
How can I switch off this behaviour?
I did send this question 1 month ago, and got the answer to
let the key function return TRUE. But this doesn't work.
I use gtk 1.2.
Relevant code:
gboolean key_actions(GtkWidget *widget, GdkEventKey *event)
{
...
return TRUE; /* This should do it, but it doesn't! */
}
main()
{
GtkWidget window;
...
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_signal_connect(GTK_OBJECT(window),"key_press_event",
(GtkSignalFunc)key_press_event,NULL);
...
(add spin buttons to window etc.)
...
gtk_main();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]