Re: Focus events causing expose events.



>
> <msevior physics unimelb edu au> writes:
>
>> I meant to ask about this. I'm seeing focus-in events on the main
>> window also issuing expose events. Is this something that is known? If
>> so, how do I stop it?
>
> FWIW, I encountered this with the drawing area when I ported Sketch to
> GTK2. The drawing area for some reason queues a redraw when it gets
> focus events. My solution was to connect to the focus events and to
> return true in my event handler so that the default implementation isn't
> run.
>
HI Bernhard,
           It's great to hear that sketch will be ported to GTK2. With
SVG and SVG icons getting more and more popular, vector graphics apps like
yours become ever more important.

Anyway, I just tried your suggestion and it worked! So this appears to be
a bug in GTK2.

focus events shouldn't cause expose events.

I haven't tried GTK2.2 yet, I'll wait till I upgrade to RH 9 in a couple
of weeks.

In any case I think I can clobber together a work-around.

Thanks.

Martin

>    Bernhard
>
> --
> Intevation GmbH                                 http://intevation.de/
> Sketch                                 http://sketch.sourceforge.net/
> MapIt!                                           http://www.mapit.de/
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]