GFile: Add some introspection annotations

progress_callback in g_file_copy and g_file_copy_async may be NULL.
Annotations should reflect that. Pointed out by Carlo Teubner.

https://bugzilla.gnome.org/show_bug.cgi?id=664415
This commit is contained in:
Matthias Clasen 2011-11-20 15:12:05 -05:00
parent ff2f4a12ee
commit 0878f5ba43

View File

@ -2988,8 +2988,9 @@ file_copy_fallback (GFile *source,
* @source: input #GFile. * @source: input #GFile.
* @destination: destination #GFile * @destination: destination #GFile
* @flags: set of #GFileCopyFlags * @flags: set of #GFileCopyFlags
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore. * @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
* @progress_callback: (scope call): function to callback with progress information * @progress_callback: (allow-none) (scope call): function to callback with
* progress information, or %NULL if progress information is not needed
* @progress_callback_data: (closure): user data to pass to @progress_callback * @progress_callback_data: (closure): user data to pass to @progress_callback
* @error: #GError to set on error, or %NULL * @error: #GError to set on error, or %NULL
* *
@ -3023,9 +3024,9 @@ file_copy_fallback (GFile *source,
* error is returned. If trying to overwrite a directory with a directory the * error is returned. If trying to overwrite a directory with a directory the
* G_IO_ERROR_WOULD_MERGE error is returned. * G_IO_ERROR_WOULD_MERGE error is returned.
* *
* If the source is a directory and the target does not exist, or #G_FILE_COPY_OVERWRITE is * If the source is a directory and the target does not exist, or
* specified and the target is a file, then the G_IO_ERROR_WOULD_RECURSE error * #G_FILE_COPY_OVERWRITE is specified and the target is a file, then the
* is returned. * G_IO_ERROR_WOULD_RECURSE error is returned.
* *
* If you are interested in copying the #GFile object itself (not the on-disk * If you are interested in copying the #GFile object itself (not the on-disk
* file), see g_file_dup(). * file), see g_file_dup().
@ -3110,10 +3111,11 @@ g_file_copy (GFile *source,
* @destination: destination #GFile * @destination: destination #GFile
* @flags: set of #GFileCopyFlags * @flags: set of #GFileCopyFlags
* @io_priority: the <link linkend="io-priority">I/O priority</link> * @io_priority: the <link linkend="io-priority">I/O priority</link>
* of the request. * of the request
* @cancellable: optional #GCancellable object, %NULL to ignore. * @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
* @progress_callback: function to callback with progress information * @progress_callback: (allow-none): function to callback with progress
* @progress_callback_data: user data to pass to @progress_callback * information, or %NULL if progress information is not needed
* @progress_callback_data: (closure): user data to pass to @progress_callback
* @callback: a #GAsyncReadyCallback to call when the request is satisfied * @callback: a #GAsyncReadyCallback to call when the request is satisfied
* @user_data: the data to pass to callback function * @user_data: the data to pass to callback function
* *