Use g_list_insert_sorted() instead of our custom function
authorEmmanuele Bassi <ebassi@openedhand.com>
Sun, 19 Aug 2007 17:06:22 +0000 (17:06 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Sun, 19 Aug 2007 17:06:22 +0000 (17:06 +0000)
commit1a6deea7a7eb9e954d692cb948f81d76dd2e8483
treeb290c7a0d9c7fe8aa6664bf174e0cc1edac70203
parent5b3f06faacdfa174ebe630932d76fb9768688d91
Use g_list_insert_sorted() instead of our custom function

The clutter_timeout_pool_insert_sorted() function caused an inversion of
the timeout sources in the pool; this led to a wrong behaviour in the
execution of the timeout functions. See bug 471.

This patch drops clutter_timeout_pool_insert_sorted() in favour of the
standard g_list_insert_sorted(), which produces identical behaviours with
and without the pool.

A new test, written by Rob Bradford, has been added to the regression test
suite in order to identify sorting issues with the timeout pools.
clutter/clutter-timeout-pool.c
tests/Makefile.am
tests/test-timeline.c [new file with mode: 0644]