ahhh ...
A
ClutterAnimation<http://developer.gnome.org/clutter/stable/clutter-Implicit-Animations.html#ClutterAnimation>
will
emit the
"completed"<http://developer.gnome.org/clutter/stable/clutter-Implicit-Animations.html#ClutterAnimation-completed>
signal
when the
ClutterTimeline<http://developer.gnome.org/clutter/stable/ClutterTimeline.html>
used
by the animation is completed; unlike
ClutterTimeline<http://developer.gnome.org/clutter/stable/ClutterTimeline.html>,
though,
the"completed"<http://developer.gnome.org/clutter/stable/clutter-Implicit-Animations.html#ClutterAnimation-completed>
will
not be emitted if
"loop"<http://developer.gnome.org/clutter/stable/clutter-Implicit-Animations.html#ClutterAnimation--loop>
is
set to TRUE - that is, a looping animation never completes.
So, a looping animation never completes, but a looping Timeline does. Now
...
private void on_animation_completed (Timeline timeline) {
stdout.printf("%s", "inside completed");
timeline.stop();
timeline.set_delay(3000);
timeline.start();
}
gets it done.
thanks
On Sat, Aug 4, 2012 at 3:30 AM, Emmanuele Bassi <[email protected]> wrote:
> On 4 August 2012 01:07, Brian Duffy <[email protected]> wrote:
> > I have tried connecting a method to the completed signal, but that signal
> > does not fire on each iteration of a looping animation.
>
> it does. if it doesn't then it's either a bug in ClutterTimeline that
> somehow got past the test suite, or it's a bug in your code.
>
> > Also, If I try it
> > without looping then the animation is invalid when execution makes it to
> my
> > signal handler.
>
> the Timeline is guaranteed to be valid for the entire duration of a
> signal emission chain. this is a basic guarantee from GObject, but we
> also have reference count guards in place to maintain a Timeline
> instance alive until the frame has been processed.
>
> ciao,
> Emmanuele.
>
> > On Fri, Aug 3, 2012 at 6:12 PM, Lionel Landwerlin <[email protected]
> >
> > wrote:
> >>
> >> What about getting the timeline of the animation and
> >> clutter_timeline_pause() ?
> >>
> >> --
> >> Lionel
> >>
> >> On Fri, 2012-08-03 at 18:08 -0400, Brian Duffy wrote:
> >> > I would like to pause for a few seconds between iterations of a
> >> > looping animation. Can it be done?
> >> >
> >> >
> >> > thanks
> >> >
> >> >
> >> > Brian
> >> >
> >> >
> >> > --
> >> > Duff
> >> >
> >> > _______________________________________________
> >> > clutter-app-devel-list mailing list
> >> > [email protected]
> >> > http://lists.clutter-project.org/listinfo/clutter-app-devel-list
> >>
> >>
> >> _______________________________________________
> >> clutter-app-devel-list mailing list
> >> [email protected]
> >> http://lists.clutter-project.org/listinfo/clutter-app-devel-list
> >
> >
> >
> >
> > --
> > Duff
> >
> > _______________________________________________
> > clutter-app-devel-list mailing list
> > [email protected]
> > http://lists.clutter-project.org/listinfo/clutter-app-devel-list
> >
>
>
>
> --
> W: http://www.emmanuelebassi.name
> B: http://blogs.gnome.org/ebassi/
>
--
Duff
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list