Re: Missing callback in animation API ?



On Wed, 2008-11-19 at 11:00 +0000, Damon Chaplin wrote:
> On Wed, 2008-11-19 at 01:41 +0100, Bruno Coudoin wrote:
> > 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 ?
> 
> Oops, I didn't consider people doing that.
> 
> I think it's easy to handle. I just need to reorder some code (to make
> sure the current animation is completely forgotten before emitting the
> signal).

It should be fixed now.

Damon




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