[ClutterTimeline] Fix clutter_timeline_set_delay

When setting a delay, timeout_add was being used with msecs. timeout_add
takes fps since the fix to bug #1495. Delay now uses g_timeout_add
instead.
This commit is contained in:
Chris Lord 2009-03-26 20:28:04 +00:00
parent 231343f151
commit cc21a4aa5f

View File

@ -347,7 +347,7 @@ clutter_timeline_dispose (GObject *object)
if (priv->delay_id)
{
timeout_remove (priv->delay_id);
g_source_remove (priv->delay_id);
priv->delay_id = 0;
}
@ -875,9 +875,9 @@ clutter_timeline_start (ClutterTimeline *timeline)
if (priv->delay)
{
priv->delay_id = timeout_add (priv->delay,
delay_timeout_func,
timeline, NULL);
priv->delay_id = g_timeout_add (priv->delay,
(GSourceFunc)delay_timeout_func,
timeline);
}
else
{
@ -907,7 +907,7 @@ clutter_timeline_pause (ClutterTimeline *timeline)
if (priv->delay_id)
{
timeout_remove (priv->delay_id);
g_source_remove (priv->delay_id);
priv->delay_id = 0;
}