diff --git a/tests/test-score.c b/tests/test-score.c index e00b9ca89..4a4f357f3 100644 --- a/tests/test-score.c +++ b/tests/test-score.c @@ -42,6 +42,7 @@ main (int argc, char **argv) ClutterTimeline *timeline_2; ClutterTimeline *timeline_3; ClutterTimeline *timeline_4; + guint t1, t2, t3, t4; clutter_init (&argc, &argv); @@ -77,20 +78,20 @@ main (int argc, char **argv) G_CALLBACK (clutter_main_quit), NULL); - clutter_score_append (score, NULL, 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); + t1 = clutter_score_append (score, NULL, timeline_1); + t2 = clutter_score_append (score, timeline_1, timeline_2); + t3 = clutter_score_append (score, timeline_1, timeline_3); + t4 = 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); g_object_unref (timeline_4); + g_object_unref (score); return EXIT_SUCCESS; } diff --git a/tests/test-unproject.c b/tests/test-unproject.c index 4c937e28a..cb819d727 100644 --- a/tests/test-unproject.c +++ b/tests/test-unproject.c @@ -36,7 +36,7 @@ on_event (ClutterStage *stage, { gchar *txt; - if (actor != stage) + if (actor != CLUTTER_ACTOR (stage)) txt = g_strdup_printf ("Click on rectangle\n" "Screen coords: [%d, %d]\n" "Local coords : [%d, %d]",