mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
2008-02-07 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-score.c (traverse_children): Actually implement clutter_score_list_timelines(). * tests/test-score.c (main): Test clutter_score_list_timelines().
This commit is contained in:
@ -42,6 +42,7 @@ main (int argc, char **argv)
|
||||
ClutterTimeline *timeline_2;
|
||||
ClutterTimeline *timeline_3;
|
||||
ClutterTimeline *timeline_4;
|
||||
GSList *timelines;
|
||||
guint t1, t2, t3, t4;
|
||||
|
||||
clutter_init (&argc, &argv);
|
||||
@ -83,6 +84,10 @@ main (int argc, char **argv)
|
||||
t3 = clutter_score_append (score, timeline_1, timeline_3);
|
||||
t4 = clutter_score_append (score, timeline_3, timeline_4);
|
||||
|
||||
timelines = clutter_score_list_timelines (score);
|
||||
g_assert (4 == g_slist_length (timelines));
|
||||
g_slist_free (timelines);
|
||||
|
||||
clutter_score_start (score);
|
||||
|
||||
clutter_main ();
|
||||
|
Reference in New Issue
Block a user