From 77cd4e2bc8ec4ad99ab2349fcb10dc5f0b57dca8 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 6 Jun 2009 18:12:26 -0400 Subject: [PATCH] Call g_main_context_wakeup() when we start running timelines If a timeline is added from a different thread, we need to call g_main_context_wakeup() to wake the main thread up to start updating the timeline. http://bugzilla.openedhand.com/show_bug.cgi?id=1637 Signed-off-by: Emmanuele Bassi --- clutter/clutter-master-clock.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clutter/clutter-master-clock.c b/clutter/clutter-master-clock.c index 3ed350139..fd9ebaa96 100644 --- a/clutter/clutter-master-clock.c +++ b/clutter/clutter-master-clock.c @@ -264,6 +264,11 @@ _clutter_master_clock_add_timeline (ClutterMasterClock *master_clock, { /* Start timing from scratch */ master_clock->prev_tick.tv_sec = 0; + + /* If called from a different thread, we need to wake up the + * main loop to start running the timelines + */ + g_main_context_wakeup (NULL); } }