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),
|
G_CALLBACK (key_pressed_cb),
|
||||||
state);
|
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,
|
g_signal_connect (state->timeline,
|
||||||
"completed",
|
"completed",
|
||||||
G_CALLBACK (invert_timeline_cb),
|
G_CALLBACK (invert_timeline_cb),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user