Re: Trouble setting GdkEventMask



>	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]