Lower the priority of the ClutterTimeline timeout function; this should

give the events queue processing a better slice of the main event loop.
This commit is contained in:
Emmanuele Bassi 2007-03-25 22:37:14 +00:00
parent a88dfe3e7d
commit 6c7b0830b5
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2007-03-25 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-timeline.c: Slightly lower the proiority
of the ClutterTimeline tick, so that events get a higher
priority in the main loop.
2007-03-25 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-event.[ch]: Remove the flags member from

View File

@ -357,9 +357,11 @@ clutter_timeline_start (ClutterTimeline *timeline)
priv = timeline->priv;
if (!priv->timeout_id)
priv->timeout_id = g_timeout_add (FPS_TO_INTERVAL(priv->fps),
timeline_timeout_func,
(gpointer)timeline);
priv->timeout_id = g_timeout_add_full (G_PRIORITY_DEFAULT + 20
FPS_TO_INTERVAL (priv->fps),
timeline_timeout_func,
timeline,
NULL);
g_signal_emit (timeline, timeline_signals[STARTED], 0);
}