Ron Steinke <[EMAIL PROTECTED]> writes:
>       I'm trying to connect to the key-press-event of a wigdet
> derived from GtkDrawingArea. It has a window, and I'm using
> gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to
> the GdkEventMask for the widget. Nonetheless, the signal
> isn't being emitted (it's not even showing up in the
> default function for the event signal in the derived
> widget). What am I forgetting? I'm using gtk 1.3, if
> that matters.
> 

You need the drawing area to have key focus. Set GTK_CAN_FOCUS flag,
gtk_widget_grab_focus() on button press, etc.

Havoc

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to