ClutterTimeline: Fix the 'msecs' parameter for the new-frame signal

Between Clutter 0.8 and 1.0, the new-frame signal of ClutterTimeline
changed the second parameter to be an elapsed time in milliseconds
rather than the frame number. However a few places in clutter were
still calling the parameter 'frame_num' which is a bit
misleading. Notably the signature for the signal class closure in the
header was using the wrong name. This changes them to use 'msecs'.
This commit is contained in:
Neil Roberts
2011-01-24 11:49:04 +00:00
parent 5c0aaf50a7
commit e8d5be0ba7
3 changed files with 3 additions and 5 deletions

View File

@ -35,11 +35,9 @@ watchdog_timeout (TestState *state)
static void
new_frame_cb (ClutterTimeline *timeline,
gint frame_num,
gint elapsed_time,
TestState *state)
{
gint elapsed_time = clutter_timeline_get_elapsed_time (timeline);
if (elapsed_time == TEST_TIMELINE_DURATION)
{
g_test_message ("new-frame signal received (end of timeline)");