Re: [gtk-list] Re: How to trigger configure event in animation



On Tue, 27 Apr 1999, Damon Chaplin wrote:

> You haven't thought through the sequence of events.
> 
>  o Timeout occurs - Animate() gets size of current image and requests
>    change in window size to display it. Then sets current image to the
>    next one! (this is the mistake!)
O dear.  Thanks for enlighten me.  I wonder why that worked in previous
versions.
 
>  o X server/window manager responds to window size request, and
>    dispatches configure event.
> 
>  o ConfigureCallback() is called which displays the current image,
>    which is now the wrong one.
> 
> This patch makes it a bit better.
Yes it works.  Thank you very much.  

> Though I'm not sure you should
> display the image in Animate() if you are changing the window size,
> since it will be displayed again in the configure event.
> 
Hmm, that's reasonable.  The actual displaying happens in
ApplyPicture().  Would it help, if I avoid gtk_window_show() in that
very case, if an configure_event was caused?  I'm not really sure
which call is in fact responsible for the displaying and I really
want to avoid that the image is displayed twice.

Thanks for your help

         Andreas.



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