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
@@ -314,8 +314,9 @@ next_async_callback_wrapper (GObject *source_object,
|
||||
* @num_files: the number of file info objects to request
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (nullable): optional #GCancellable object, %NULL to ignore.
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
||||
* @user_data: (closure): the data to pass to callback function
|
||||
* @callback: (scope async) (closure user_data): a #GAsyncReadyCallback
|
||||
* to call when the request is satisfied
|
||||
* @user_data: the data to pass to callback function
|
||||
*
|
||||
* Request information for a number of files from the enumerator asynchronously.
|
||||
* When all I/O for the operation is finished the @callback will be called with
|
||||
@@ -485,8 +486,9 @@ close_async_callback_wrapper (GObject *source_object,
|
||||
* @enumerator: a #GFileEnumerator.
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (nullable): optional #GCancellable object, %NULL to ignore.
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
||||
* @user_data: (closure): the data to pass to callback function
|
||||
* @callback: (scope async) (closure user_data): a #GAsyncReadyCallback
|
||||
* to call when the request is satisfied
|
||||
* @user_data: the data to pass to callback function
|
||||
*
|
||||
* Asynchronously closes the file enumerator.
|
||||
*
|
||||
|
Reference in New Issue
Block a user