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:
parent
7eb248b1f0
commit
e205bd0fdc
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user