mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
1ccbe04505
* clutter/clutter-score.c: * clutter/clutter-score.h: * tests/test-score.c: Implement more ClutterScore functionality.
38 lines
929 B
C
38 lines
929 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <clutter/clutter.h>
|
|
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
ClutterScore *score;
|
|
ClutterTimeline *timeline_1;
|
|
ClutterTimeline *timeline_2;
|
|
ClutterTimeline *timeline_3;
|
|
ClutterTimeline *timeline_4;
|
|
|
|
clutter_init (&argc, &argv);
|
|
|
|
timeline_1 = clutter_timeline_new (10, 120);
|
|
timeline_2 = clutter_timeline_clone (timeline_1);
|
|
timeline_3 = clutter_timeline_clone (timeline_1);
|
|
timeline_4 = clutter_timeline_clone (timeline_1);
|
|
|
|
score = clutter_score_new();
|
|
clutter_score_add (score, timeline_1);
|
|
clutter_score_append (score, timeline_1, timeline_2);
|
|
clutter_score_append (score, timeline_1, timeline_3);
|
|
clutter_score_append (score, timeline_3, timeline_4);
|
|
|
|
clutter_score_start (score);
|
|
|
|
clutter_main ();
|
|
|
|
g_object_unref (score);
|
|
g_object_unref (timeline_1);
|
|
g_object_unref (timeline_2);
|
|
g_object_unref (timeline_3);
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|