From 5b7c109e1c165dff0b6e51ec9451d5236a93b28d Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 16 Aug 2018 10:58:43 +0100 Subject: [PATCH] gclosure: Clarify when destroy notifiers are called in documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They’re called in finalize, not invalidate. Signed-off-by: Philip Withnall https://gitlab.gnome.org/GNOME/glib/issues/277 --- gobject/gclosure.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gobject/gclosure.c b/gobject/gclosure.c index 188c74ad8..8c827014d 100644 --- a/gobject/gclosure.c +++ b/gobject/gclosure.c @@ -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*