[mutter] Create the dummy timeline for repaint laters with an "infinite" duration.
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mutter] Create the dummy timeline for repaint laters with an "infinite" duration.
- Date: Fri, 2 Oct 2009 20:15:23 +0000 (UTC)
commit 083854e2de54315091fefa6fdd5f2b5fd9480590
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Fri Oct 2 16:12:11 2009 -0400
Create the dummy timeline for repaint laters with an "infinite" duration.
When we create the timeline dummy timeline to ensure that our later
functions that should be run during repaint get called called, pass in
G_MAXUINT to make the duration very long, not 0. (It will get reset
whenever there is no repaint later to run, so the fact that G_MAXUINT
is only ~40 days isn't a problem.)
This fixes a warning from Clutter, but also a real problem.
src/core/util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/util.c b/src/core/util.c
index f83d23d..53bde09 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -750,7 +750,7 @@ static void
ensure_later_repaint_func (void)
{
if (!later_timeline)
- later_timeline = clutter_timeline_new (0);
+ later_timeline = clutter_timeline_new (G_MAXUINT);
if (later_repaint_func == 0)
later_repaint_func = clutter_threads_add_repaint_func (run_repaint_laters,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]