gclosure: Clarify when destroy notifiers are called in documentation

They’re called in finalize, not invalidate.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://gitlab.gnome.org/GNOME/glib/issues/277
This commit is contained in:
Philip Withnall 2018-08-16 10:58:43 +01:00
parent ed6903f6fb
commit 5b7c109e1c

View File

@ -936,6 +936,8 @@ _g_closure_set_va_marshal (GClosure *closure,
* Creates a new closure which invokes @callback_func with @user_data as * Creates a new closure which invokes @callback_func with @user_data as
* the last parameter. * 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 * Returns: (transfer none): a floating reference to a new #GCClosure
*/ */
GClosure* GClosure*
@ -964,6 +966,8 @@ g_cclosure_new (GCallback callback_func,
* Creates a new closure which invokes @callback_func with @user_data as * Creates a new closure which invokes @callback_func with @user_data as
* the first parameter. * 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 * Returns: (transfer none): a floating reference to a new #GCClosure
*/ */
GClosure* GClosure*