Override some behavior of gtk_sheet_key_press
- From: jgotts linuxsavvy com
- To: feiguin magnet fsu edu
- Cc: scigraphica-gtkextra lists sourceforge net, gtk-list gnome org
- Subject: Override some behavior of gtk_sheet_key_press
- Date: Fri, 12 Oct 2001 03:40:53 -0400
The GtkSheet widget has a built-in key_press_event handler called
gtk_sheet_key_press().
I'd like to override certain behavior of that handler with my custom handler.
In particular, I'd like GDK_KP_Space to not actually print a space, I'd like
GDK_KP_Return to stay put, and I think I'd like to allow the right and left
arrow keys to move to the right or left cell in some cases instead of trying to
move the cursor in the current cell.
I've added my handler like so:
gtk_signal_connect(GTK_OBJECT(sheet), "key_press_event", (GtkSignalFunc) key_press_event_cb, NULL);
But apparently gtk_sheet_key_press() is doing its thing before my handler. Is
there a way to have my handler called first and then pass on control for
certain keys to the built-in handler?
John
--
John GOTTS <jgotts linuxsavvy com> http://linuxsavvy.com/staff/jgotts
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]