Re: An odd DrawingArea problem



On Mon, 3 May 2004, Daniel Haude wrote:
When an expose event occurs GTK will clear the affected region with the
background color or background pixmap right before your applications
expose callback is called.

This is actually not true; gtk clears the drawingara *after* I've
plastered something on top of it using SDL (my SDL-drawn content is only
visible as a short flash, or longer when I call sleep() before returning
from the expose_event callback). Note that GTK doesn't know about the
contents of the drawingarea's window since I'm not using GDK to draw on
it.
Hi Daniel!
I'm wondering why GTK should clear the widget *after* your application
received the expose-event. I never experienced such a behaviour and it
wouldn't make any sense. Could it be that you returned FALSE in your
expose-event-handler?

Regards,
                     Peter
-- 
====================================================================
Peter Krüger

applied software solutions (appss) GmbH
Sandtorstr. 23
D-39106 Magdeburg
Germany

Phone:  +49-(0)391-54486-19388
Fax:    +49-(0)391-54486-19222
email:  krueger appss de
URL:    http://www.appss.de/

Managing Director: Uwe Hess, Dietmar Schäfer
Register: HRB12386, AG Magdeburg

"Virtual business becomes reality!"

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
====================================================================




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