From 6c7b0830b53fa69dfd5462ef51f5b7532f0e8066 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 25 Mar 2007 22:37:14 +0000 Subject: [PATCH] Lower the priority of the ClutterTimeline timeout function; this should give the events queue processing a better slice of the main event loop. --- ChangeLog | 6 ++++++ clutter/clutter-timeline.c | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f5cf8fb29..ab1aa12ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-25 Emmanuele Bassi + + * 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 * clutter/clutter-event.[ch]: Remove the flags member from diff --git a/clutter/clutter-timeline.c b/clutter/clutter-timeline.c index c9ad906ae..f963e00d3 100644 --- a/clutter/clutter-timeline.c +++ b/clutter/clutter-timeline.c @@ -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); }