Re: GtkDrawingArea and "key_press_event"
- From: "Tara M" <learfox furry ao net>
- To: "LIST: GTKAppDevel" <gtk-app-devel-list gnome org>
- Subject: Re: GtkDrawingArea and "key_press_event"
- Date: 04 Aug 2001 14:36:30 PDT
I'm afraid that didn't work, for some reason the key events
are just not being reported.
I'll try an event box next...
On Sat, 4 Aug 2001 13:19:13 +0300, Mihai Bazon said:
Uhmm...
GTK_WIDGET_SET_FLAGS(drw_area, GTK_CAN_FOCUS);
gtk_widget_grab_focus(drw_area);
If that doesn't work, you could try embedding it in an event box..
take care,
//mishoo
"Tara M" <learfox furry ao net> wrote:
>
> On Sat, 4 Aug 2001 11:32:09 +0300, Mihai Bazon said:
>
> I tried clicking on it, is that good enough or do I have
> to set some kind of grab?
>
> > I'm not sure, but I think that key events may be received by
> > the focused widget only... so, is it focused?
> >
> > On 03 Aug 2001 21:16:38 PDT
> > "Tara M" <learfox furry ao net> wrote:
> >
> > > How do I get a GtkDrawingArea widget to report a
> > > "key_press_event"?
> > >
> > > I tried using gtk_widget_add_events() to add the
> > > GDK_KEY_PRESS_MASK to it and then attaching the signal for
> > > the "key_press_event" but when I move the pointer over the
> > > GtkDrawingArea it dosen't report the key event when I press
> > > any key.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]