Re: Trouble setting GdkEventMask
- From: Paul Davis <pbd Op Net>
- To: Ron Steinke <rsteinke w-link net>
- Cc: gtk-list gnome org
- Subject: Re: Trouble setting GdkEventMask
- Date: Mon, 18 Jun 2001 16:31:57 -0400
> 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.
did you set the CAN_FOCUS flag? otherwise, the widget will never
receive keyboard focus (i think) ...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]