diff options
author | badcel <33569-badcel@users.noreply.gitlab.gnome.org> | 2023-01-15 16:18:05 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2023-02-13 23:21:00 +0000 |
commit | 7ae7a6719e5e0fab608d661096c0934402e1f7cd (patch) | |
tree | d362639959d4e0d8b68a45c01d56ce487a672f66 | |
parent | 9330cf48438818aad951c43f7b23ff27ad7d8c30 (diff) | |
download | gobject-introspection-7ae7a6719e5e0fab608d661096c0934402e1f7cd.tar.gz |
Reword closure annotation documentation
-rw-r--r-- | docs/website/annotations/giannotations.rst | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/docs/website/annotations/giannotations.rst b/docs/website/annotations/giannotations.rst index 8769132a..4691152a 100644 --- a/docs/website/annotations/giannotations.rst +++ b/docs/website/annotations/giannotations.rst @@ -148,24 +148,22 @@ Support for GObject closures - Since * - ``(destroy)`` - parameters - - The parameter is a "``destroy_data``" for callbacks. + - The parameter is part of a callback type and containing the ``destroy_data``. - :commit:`v0.6.3 <cf7621f3>` :bzbug:`574284` * - ``(destroy DESTROY)`` - parameters - - The parameter is a "``destroy_data``" for callbacks, the - ``DESTROY`` option points to a paramter name other than - ``destroy_data``. + - The parameter defines the ``destroy_data`` for a given callback. The + ``DESTROY`` option points to the parameter that is the actual callback. - * - ``(closure)`` - parameters - - The parameter is a "``user_data``" for callbacks. - Many bindings can pass ``NULL`` here. + - The parameter is part of a callback type and containing the ``user_data``. - * - ``(closure CLOSURE)`` - parameters - - The parameter is a "``user_data``" for callbacks, the ``CLOSURE`` option - points to a different parameter that is the actual callback. + - The parameter defines the ``user_data`` for a given callback. The ``CLOSURE`` option + points to the parameter that is the actual callback. Many bindings can pass ``NULL`` here. - |