Hi,
Ive having trouble adding accelerator to the enter key. I want the
enter key to map to a button click event.
If I use....
gtk_widget_add_accelerator(find_window, "find_signal", accel_group,
GDK_Escape, 0, GTK_ACCEL_VISIBLE);
gtk_signal_connect(GTK_OBJECT (find_window), "find_signal",
GTK_SIGNAL_FUNC (on_find_button_clicked), NULL);
....
The code works fine. When I press Esc my sig handler gets called.
But, If I change the key to 'GDK_Return', the handler does not get
called. I think it may be becuase the current focus is in an entry field.
Im new at this so Im sure there may be an easy workaround... or maybe a
better way to add the accelerator. Any suggestions?
Thanks.
J.
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list