[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:
parent
231343f151
commit
cc21a4aa5f
@ -347,7 +347,7 @@ clutter_timeline_dispose (GObject *object)
|
|||||||
|
|
||||||
if (priv->delay_id)
|
if (priv->delay_id)
|
||||||
{
|
{
|
||||||
timeout_remove (priv->delay_id);
|
g_source_remove (priv->delay_id);
|
||||||
priv->delay_id = 0;
|
priv->delay_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -875,9 +875,9 @@ clutter_timeline_start (ClutterTimeline *timeline)
|
|||||||
|
|
||||||
if (priv->delay)
|
if (priv->delay)
|
||||||
{
|
{
|
||||||
priv->delay_id = timeout_add (priv->delay,
|
priv->delay_id = g_timeout_add (priv->delay,
|
||||||
delay_timeout_func,
|
(GSourceFunc)delay_timeout_func,
|
||||||
timeline, NULL);
|
timeline);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -907,7 +907,7 @@ clutter_timeline_pause (ClutterTimeline *timeline)
|
|||||||
|
|
||||||
if (priv->delay_id)
|
if (priv->delay_id)
|
||||||
{
|
{
|
||||||
timeout_remove (priv->delay_id);
|
g_source_remove (priv->delay_id);
|
||||||
priv->delay_id = 0;
|
priv->delay_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user