Re: Trouble setting GdkEventMask
- From: Ron Steinke <rsteinke w-link net>
- To: pbd Op Net, rsteinke w-link net
- Cc: gtk-list gnome org
- Subject: Re: Trouble setting GdkEventMask
- Date: Mon, 18 Jun 2001 18:18:05 -0700
> From: Paul Davis <pbd Op Net>
>
> > 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) ...
>
I was missing that, so thanks. However, I changed that,
and it still doesn't work. What else is missing?
Ron Steinke
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]