1
0
Fork 0

2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>

* clutter/clutter-timeout-pool.c:
	(clutter_timeout_pool_new): Fix previous commit: g_source_unref()
	is not needed. (Thanks to Neil Roberts)
This commit is contained in:
Emmanuele Bassi 2008-09-23 12:58:31 +00:00
parent 9ddfe73b39
commit b3726e4d66
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
* clutter/clutter-timeout-pool.c:
(clutter_timeout_pool_new): Fix previous commit: g_source_unref()
is not needed. (Thanks to Neil Roberts)
2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
Bug 1154 - clutter_timeout_pool_new() documentation doesn't say

View file

@ -422,8 +422,9 @@ clutter_timeout_pool_finalize (GSource *source)
* Inside Clutter, every #ClutterTimeline share the same timeout pool, unless
* the CLUTTER_TIMELINE=no-pool environment variable is set.
*
* Return value: the newly created #ClutterTimeoutPool. Use g_source_unref()
* to release the resources allocated by this function
* Return value: the newly created #ClutterTimeoutPool. The created pool
* is owned by the GLib default context and should not be unreferenced
* or freed
*
* Since: 0.4
*/
@ -442,9 +443,12 @@ clutter_timeout_pool_new (gint priority)
g_source_set_priority (source, priority);
pool = (ClutterTimeoutPool *) source;
g_get_current_time (&pool->start_time);
pool->next_id = 1;
pool->id = g_source_attach (source, NULL);
/* let the default GLib context manage the pool */
g_source_unref (source);
return pool;