mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 08:22:16 +01:00 
			
		
		
		
	Merge branch '277-closure-docs' into 'master'
gclosure: Clarify when destroy notifiers are called in documentation Closes #277 See merge request GNOME/glib!246
This commit is contained in:
		| @@ -556,7 +556,7 @@ g_closure_ref (GClosure *closure) | ||||
|  | ||||
| /** | ||||
|  * g_closure_invalidate: | ||||
|  * @closure: GClosure to invalidate | ||||
|  * @closure: #GClosure to invalidate | ||||
|  * | ||||
|  * Sets a flag on the closure to indicate that its calling | ||||
|  * environment has become invalid, and thus causes any future | ||||
| @@ -936,6 +936,8 @@ _g_closure_set_va_marshal (GClosure       *closure, | ||||
|  * Creates a new closure which invokes @callback_func with @user_data as | ||||
|  * the last parameter. | ||||
|  * | ||||
|  * @destroy_data will be called as a finalize notifier on the #GClosure. | ||||
|  * | ||||
|  * Returns: (transfer none): a floating reference to a new #GCClosure | ||||
|  */ | ||||
| GClosure* | ||||
| @@ -964,6 +966,8 @@ g_cclosure_new (GCallback      callback_func, | ||||
|  * Creates a new closure which invokes @callback_func with @user_data as | ||||
|  * the first parameter. | ||||
|  * | ||||
|  * @destroy_data will be called as a finalize notifier on the #GClosure. | ||||
|  * | ||||
|  * Returns: (transfer none): a floating reference to a new #GCClosure | ||||
|  */ | ||||
| GClosure* | ||||
|   | ||||
| @@ -4109,8 +4109,8 @@ destroy_closure_array (gpointer data) | ||||
|  | ||||
| /** | ||||
|  * g_object_watch_closure: | ||||
|  * @object: GObject restricting lifetime of @closure | ||||
|  * @closure: GClosure to watch | ||||
|  * @object: #GObject restricting lifetime of @closure | ||||
|  * @closure: #GClosure to watch | ||||
|  * | ||||
|  * This function essentially limits the life time of the @closure to | ||||
|  * the life time of the object. That is, when the object is finalized, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user