Re: Missing callback in animation API ?



Le dimanche 16 novembre 2008 à 22:00 +0000, Damon Chaplin a écrit :
> On Sun, 2008-11-16 at 21:12 +0100, Bruno Coudoin wrote:
> > I am using the animation API but I did not found a way to accurately
> > perform an action once the animation is complete.
> > 
> > I tried to set a timer with the same duration as the one I provide in
> > the animate call but it is not accurate enough. I don't expect a
> > millisecond accuracy but here I have 1 ore 2 seconds mismatch. Perhaps
> > there is a problem in the animation code or something I don't do
> > properly.
> > 
> > Even if it worked with a timeout, don't you think it would be better to
> > have the ability to provide a callback ?
> 
> I added an "animation-finished" signal to svn a week or two ago, so that
> will be in the next release.

Great. I tested it and it works fine except that I cannot start another
animation from within the signal callback. I am perhaps doing something
wrong but is this what you expect ?

-- 
Bruno Coudoin
http://gcompris.net Free educational software for kids
http://toulibre.org Logiciel Libre à Toulouse



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