mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
Audit and fix incorrect use of (closure) in glib
Following Emmanuele's instructions for use of introspection annotations: https://www.bassi.io/articles/2023/02/20/bindable-api-2023/ I have audited all uses of the (closure) annotation in glib and determined that only a handful are correct. This commit changes almost all of our use of (closure) annotations to conform to Emmanuele's rules.
This commit is contained in:
committed by
Philip Withnall
parent
9cb52d9f3b
commit
5d738ddcfe
@@ -835,7 +835,7 @@ accept_ready (GSocket *accept_socket,
|
||||
* @listener: a #GSocketListener
|
||||
* @cancellable: (nullable): a #GCancellable, or %NULL
|
||||
* @callback: (scope async): a #GAsyncReadyCallback
|
||||
* @user_data: (closure): user data for the callback
|
||||
* @user_data: user data for the callback
|
||||
*
|
||||
* This is the asynchronous version of g_socket_listener_accept_socket().
|
||||
*
|
||||
@@ -910,7 +910,7 @@ g_socket_listener_accept_socket_finish (GSocketListener *listener,
|
||||
* @listener: a #GSocketListener
|
||||
* @cancellable: (nullable): a #GCancellable, or %NULL
|
||||
* @callback: (scope async): a #GAsyncReadyCallback
|
||||
* @user_data: (closure): user data for the callback
|
||||
* @user_data: user data for the callback
|
||||
*
|
||||
* This is the asynchronous version of g_socket_listener_accept().
|
||||
*
|
||||
|
Reference in New Issue
Block a user