[glib: 1/3] gclosure: Clarify when destroy notifiers are called in documentation



commit 5b7c109e1c165dff0b6e51ec9451d5236a93b28d
Author: Philip Withnall <withnall endlessm com>
Date:   Thu Aug 16 10:58:43 2018 +0100

    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

 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*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]