Re: Trouble setting GdkEventMask
- From: Ron Steinke <rsteinke w-link net>
- To: hp redhat com, rsteinke w-link net
- Cc: gtk-list gnome org
- Subject: Re: Trouble setting GdkEventMask
- Date: Tue, 19 Jun 2001 07:31:27 -0700
> From: Havoc Pennington <hp redhat com>
> Ron Steinke <rsteinke w-link net> writes:
> > > From: Havoc Pennington <hp redhat com>
> > > Ron Steinke <rsteinke w-link net> writes:
> > > >
> > > > I was missing that, so thanks. However, I changed that,
> > > > and it still doesn't work. What else is missing?
> > > >
> > >
> > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and
> > > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus
> > > indication if any. GTK 2.0 has default implementations that do this in
> > > GtkWidget.
> > >
> >
> > But I am using 2.0 (really, 1.3, CVS within the last month
> > or so), so this can't be it either.
> >
>
> I'm assuming you actually focus the drawing area (via tab key, or
> gtk_widget_grab_focus() on button press, or something?)
That was it. Thanks. Perhaps a short lecture on the way focus works
in GTK is in order?
Ron Steinke
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]