1
0
Fork 0

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.
This commit is contained in:
Elliot Smith 2010-11-11 12:04:20 +00:00
parent 7eb248b1f0
commit e205bd0fdc

View file

@ -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),