From e205bd0fdc42832d97bf022cf63faa6d5302478c Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Thu, 11 Nov 2010 12:04:20 +0000 Subject: [PATCH] cookbook: Clarify how signals are emitted during looped animation Added a comment to the example code about how timeline emits "completed" during looped animation, while the animation itself doesn't. --- doc/cookbook/examples/animations-looping-implicit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/cookbook/examples/animations-looping-implicit.c b/doc/cookbook/examples/animations-looping-implicit.c index 0f83d07df..15eb00953 100644 --- a/doc/cookbook/examples/animations-looping-implicit.c +++ b/doc/cookbook/examples/animations-looping-implicit.c @@ -69,6 +69,10 @@ main (int argc, G_CALLBACK (key_pressed_cb), state); + /* the animation will not emit a "completed" signal, + * as it is set to loop; but the timeline emits "completed" + * at the end of each iteration of the loop + */ g_signal_connect (state->timeline, "completed", G_CALLBACK (invert_timeline_cb),