mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-22 15:19:16 +02:00
Clarify the sentence about GAsyncReadyCallback, and correct some spelling
2008-01-11 Murray Cumming <murrayc@murrayc.com> * gfile.c: Clarify the sentence about GAsyncReadyCallback, and correct some spelling mistakes. Bug #508108. svn path=/trunk/; revision=6295
This commit is contained in:
parent
ef613614c9
commit
85fc6345db
@ -1,3 +1,8 @@
|
|||||||
|
2008-01-11 Murray Cumming <murrayc@murrayc.com>
|
||||||
|
|
||||||
|
* gfile.c: Clarify the sentence about GAsyncReadyCallback,
|
||||||
|
and correct some spelling mistakes. Bug #508108.
|
||||||
|
|
||||||
2008-01-11 Matthias Clasen <mclasen@redhat.com>
|
2008-01-11 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glocalfileinfo.c: Add a comment.
|
* glocalfileinfo.c: Add a comment.
|
||||||
|
31
gio/gfile.c
31
gio/gfile.c
@ -65,7 +65,8 @@
|
|||||||
* to suit your application. Asynchronous versions of synchronous functions
|
* to suit your application. Asynchronous versions of synchronous functions
|
||||||
* simply have _async() appended to their function names. The asynchronous
|
* simply have _async() appended to their function names. The asynchronous
|
||||||
* I/O functions call a #GAsyncReadyCallback which is then used to finalize
|
* I/O functions call a #GAsyncReadyCallback which is then used to finalize
|
||||||
* the operation, which is then passed to the function's matching _finish()
|
* the operation, producing a GAsyncResult which is then passed to the
|
||||||
|
* function's matching _finish()
|
||||||
* operation.
|
* operation.
|
||||||
*
|
*
|
||||||
* Some #GFile operations do not have synchronous analogs, as they may
|
* Some #GFile operations do not have synchronous analogs, as they may
|
||||||
@ -243,7 +244,7 @@ g_file_base_init (gpointer g_class)
|
|||||||
* e.g. "C:\Windows" or "/usr/bin/". This does not mean the file is local,
|
* e.g. "C:\Windows" or "/usr/bin/". This does not mean the file is local,
|
||||||
* as it might be on a locally mounted remote filesystem.
|
* as it might be on a locally mounted remote filesystem.
|
||||||
*
|
*
|
||||||
* On some systems non-native files may be availible using
|
* On some systems non-native files may be available using
|
||||||
* the native filesystem via a userspace filesystem (FUSE), in
|
* the native filesystem via a userspace filesystem (FUSE), in
|
||||||
* these cases this call will return %FALSE, but g_file_get_path()
|
* these cases this call will return %FALSE, but g_file_get_path()
|
||||||
* will still return a native path.
|
* will still return a native path.
|
||||||
@ -597,11 +598,11 @@ g_file_get_child_for_display_name (GFile *file,
|
|||||||
* @parent: input #GFile.
|
* @parent: input #GFile.
|
||||||
* @descendant: input #GFile.
|
* @descendant: input #GFile.
|
||||||
*
|
*
|
||||||
* Checks whether @parent (recursively) contains the specified @descendent.
|
* Checks whether @parent (recursively) contains the specified @descendant.
|
||||||
*
|
*
|
||||||
* This call does no blocking i/o.
|
* This call does no blocking i/o.
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if the @descendent's parent, grandparent, etc is @parent. %FALSE otherwise.
|
* Returns: %TRUE if the @descendant's parent, grandparent, etc is @parent. %FALSE otherwise.
|
||||||
**/
|
**/
|
||||||
gboolean
|
gboolean
|
||||||
g_file_contains_file (GFile *parent,
|
g_file_contains_file (GFile *parent,
|
||||||
@ -694,7 +695,7 @@ g_file_resolve_relative_path (GFile *file,
|
|||||||
* be a comma-separated list of attribute or attribute wildcards. The wildcard "*"
|
* be a comma-separated list of attribute or attribute wildcards. The wildcard "*"
|
||||||
* means all attributes, and a wildcard like "standard::*" means all attributes in the standard
|
* means all attributes, and a wildcard like "standard::*" means all attributes in the standard
|
||||||
* namespace. An example attribute query be "standard::*,owner::user".
|
* namespace. An example attribute query be "standard::*,owner::user".
|
||||||
* The standard attributes are availible as defines, like #G_FILE_ATTRIBUTE_STANDARD_NAME.
|
* The standard attributes are available as defines, like #G_FILE_ATTRIBUTE_STANDARD_NAME.
|
||||||
*
|
*
|
||||||
* If @cancellable is not %NULL, then the operation can be cancelled by
|
* If @cancellable is not %NULL, then the operation can be cancelled by
|
||||||
* triggering the cancellable object from another thread. If the operation
|
* triggering the cancellable object from another thread. If the operation
|
||||||
@ -830,7 +831,7 @@ g_file_enumerate_children_finish (GFile *file,
|
|||||||
* be a comma-separated list of attribute or attribute wildcards. The wildcard "*"
|
* be a comma-separated list of attribute or attribute wildcards. The wildcard "*"
|
||||||
* means all attributes, and a wildcard like "standard::*" means all attributes in the standard
|
* means all attributes, and a wildcard like "standard::*" means all attributes in the standard
|
||||||
* namespace. An example attribute query be "standard::*,owner::user".
|
* namespace. An example attribute query be "standard::*,owner::user".
|
||||||
* The standard attributes are availible as defines, like #G_FILE_ATTRIBUTE_STANDARD_NAME.
|
* The standard attributes are available as defines, like #G_FILE_ATTRIBUTE_STANDARD_NAME.
|
||||||
*
|
*
|
||||||
* If @cancellable is not %NULL, then the operation can be cancelled by
|
* If @cancellable is not %NULL, then the operation can be cancelled by
|
||||||
* triggering the cancellable object from another thread. If the operation
|
* triggering the cancellable object from another thread. If the operation
|
||||||
@ -960,7 +961,7 @@ g_file_query_info_finish (GFile *file,
|
|||||||
*
|
*
|
||||||
* Similar to g_file_query_info(), but obtains information
|
* Similar to g_file_query_info(), but obtains information
|
||||||
* about the filesystem the @file is on, rather than the file itself.
|
* about the filesystem the @file is on, rather than the file itself.
|
||||||
* For instance the amount of space availible and the type of
|
* For instance the amount of space available and the type of
|
||||||
* the filesystem.
|
* the filesystem.
|
||||||
*
|
*
|
||||||
* The @attribute value is a string that specifies the file attributes that
|
* The @attribute value is a string that specifies the file attributes that
|
||||||
@ -971,7 +972,7 @@ g_file_query_info_finish (GFile *file,
|
|||||||
* namespace. The standard namespace for filesystem attributes is "fs".
|
* namespace. The standard namespace for filesystem attributes is "fs".
|
||||||
* Common attributes of interest are #G_FILE_ATTRIBUTE_FILESYSTEM_SIZE
|
* Common attributes of interest are #G_FILE_ATTRIBUTE_FILESYSTEM_SIZE
|
||||||
* (the total size of the filesystem in bytes), #G_FILE_ATTRIBUTE_FILESYSTEM_FREE (number of
|
* (the total size of the filesystem in bytes), #G_FILE_ATTRIBUTE_FILESYSTEM_FREE (number of
|
||||||
* bytes availible), and #G_FILE_ATTRIBUTE_FILESYSTEM_TYPE (type of the filesystem).
|
* bytes available), and #G_FILE_ATTRIBUTE_FILESYSTEM_TYPE (type of the filesystem).
|
||||||
*
|
*
|
||||||
* If @cancellable is not %NULL, then the operation can be cancelled by
|
* If @cancellable is not %NULL, then the operation can be cancelled by
|
||||||
* triggering the cancellable object from another thread. If the operation
|
* triggering the cancellable object from another thread. If the operation
|
||||||
@ -1442,7 +1443,7 @@ g_file_append_to_finish (GFile *file,
|
|||||||
* Asynchronously creates a new file and returns an output stream for writing to it.
|
* Asynchronously creates a new file and returns an output stream for writing to it.
|
||||||
* The file must not already exists.
|
* The file must not already exists.
|
||||||
*
|
*
|
||||||
* For more details, see g_file_creat() which is
|
* For more details, see g_file_create() which is
|
||||||
* the synchronous version of this call.
|
* the synchronous version of this call.
|
||||||
*
|
*
|
||||||
* When the operation is finished, @callback will be called. You can then call
|
* When the operation is finished, @callback will be called. You can then call
|
||||||
@ -1514,7 +1515,7 @@ g_file_create_finish (GFile *file,
|
|||||||
* @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
|
||||||
*
|
*
|
||||||
* Asyncronously overwrites the file, replacing the contents, possibly
|
* Asynchronously overwrites the file, replacing the contents, possibly
|
||||||
* creating a backup copy of the file first.
|
* creating a backup copy of the file first.
|
||||||
*
|
*
|
||||||
* For more details, see g_file_replace() which is
|
* For more details, see g_file_replace() which is
|
||||||
@ -2026,7 +2027,7 @@ file_copy_fallback (GFile *source,
|
|||||||
* If @progress_callback is not %NULL, then the operation can be monitored by
|
* If @progress_callback is not %NULL, then the operation can be monitored by
|
||||||
* setting this to a #GFileProgressCallback function. @progress_callback_data
|
* setting this to a #GFileProgressCallback function. @progress_callback_data
|
||||||
* will be passed to this function. It is guaranteed that this callback will
|
* will be passed to this function. It is guaranteed that this callback will
|
||||||
* be called after all data has been transfered with the total number of bytes
|
* be called after all data has been transferred with the total number of bytes
|
||||||
* copied during the operation.
|
* copied during the operation.
|
||||||
*
|
*
|
||||||
* If the @source file does not exist then the G_IO_ERROR_NOT_FOUND
|
* If the @source file does not exist then the G_IO_ERROR_NOT_FOUND
|
||||||
@ -2123,7 +2124,7 @@ g_file_copy (GFile *source,
|
|||||||
* If @progress_callback is not %NULL, then the operation can be monitored by
|
* If @progress_callback is not %NULL, then the operation can be monitored by
|
||||||
* setting this to a #GFileProgressCallback function. @progress_callback_data
|
* setting this to a #GFileProgressCallback function. @progress_callback_data
|
||||||
* will be passed to this function. It is guaranteed that this callback will
|
* will be passed to this function. It is guaranteed that this callback will
|
||||||
* be called after all data has been transfered with the total number of bytes
|
* be called after all data has been transferred with the total number of bytes
|
||||||
* copied during the operation.
|
* copied during the operation.
|
||||||
*
|
*
|
||||||
* If the @source file does not exist then the G_IO_ERROR_NOT_FOUND
|
* If the @source file does not exist then the G_IO_ERROR_NOT_FOUND
|
||||||
@ -2138,7 +2139,7 @@ g_file_copy (GFile *source,
|
|||||||
*
|
*
|
||||||
* 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 #G_FILE_COPY_OVERWRITE is
|
||||||
* specified and the target is a file, then the G_IO_ERROR_WOULD_RECURSE error
|
* specified and the target is a file, then the G_IO_ERROR_WOULD_RECURSE error
|
||||||
* may be returned (if the native move operation isn't availible).
|
* may be returned (if the native move operation isn't available).
|
||||||
*
|
*
|
||||||
* Returns: %TRUE on successful move, %FALSE otherwise.
|
* Returns: %TRUE on successful move, %FALSE otherwise.
|
||||||
**/
|
**/
|
||||||
@ -4067,7 +4068,7 @@ g_file_mount_enclosing_volume (GFile *location,
|
|||||||
* Finishes a mount operation started by g_file_mount_enclosing_volume().
|
* Finishes a mount operation started by g_file_mount_enclosing_volume().
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if successful. If an error
|
* Returns: %TRUE if successful. If an error
|
||||||
* has occured, this function will return %FALSE and set @error
|
* has occurred, this function will return %FALSE and set @error
|
||||||
* appropriately if present.
|
* appropriately if present.
|
||||||
**/
|
**/
|
||||||
gboolean
|
gboolean
|
||||||
@ -4566,7 +4567,7 @@ g_file_load_contents_finish (GFile *file,
|
|||||||
* next time it is saved over.
|
* next time it is saved over.
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if successful. If an error
|
* Returns: %TRUE if successful. If an error
|
||||||
* has occured, this function will return %FALSE and set @error
|
* has occurred, this function will return %FALSE and set @error
|
||||||
* appropriately if present.
|
* appropriately if present.
|
||||||
**/
|
**/
|
||||||
gboolean
|
gboolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user