mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
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:
parent
9ddfe73b39
commit
b3726e4d66
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user