timeline: Cast elapsed time before emitting ::new-frame
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 18 Jul 2011 12:45:55 +0000 (13:45 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 18 Jul 2011 12:45:55 +0000 (13:45 +0100)
commit1402c0511239ede27855a836fd9ca9cc8dbf969d
tree33739863f9eca7d27c9d9a7510abb44cdfb3a64f
parentc9cbe58343d4202e40d8ffd898712effca08381e
timeline: Cast elapsed time before emitting ::new-frame

When emitting a new-frame signal, priv->elapsed_time is passed as a
parameter. This is a gint64. The closure marshal uses an INT. On some
platforms, this is not received correctly by signal handlers (they
receive 0). One solution is to cast priv->elapsed_time to a gint when
emitting the signal.

We cannot change the signature of the signal without breaking ABI.

https://bugzilla.gnome.org/show_bug.cgi?id=654066
clutter/clutter-timeline.c