From 083854e2de54315091fefa6fdd5f2b5fd9480590 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Fri, 2 Oct 2009 16:12:11 -0400 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/util.c b/src/core/util.c index f83d23ddd..53bde0955 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,