From e9f7fd414e94595e40eb1ba0fc471ca69136d82f Mon Sep 17 00:00:00 2001 From: Paul Bolle Date: Thu, 8 Apr 2010 11:52:25 +0200 Subject: Docs: replace gio.IO_ERROR_* with gio.ERROR_* Signed-off-by: Paul Bolle --- docs/reference/pygio-file.xml | 58 ++++++++++++++++++------------------ docs/reference/pygio-inputstream.xml | 22 +++++++------- docs/reference/pygio-mount.xml | 10 +++---- 3 files changed, 45 insertions(+), 45 deletions(-) (limited to 'docs') diff --git a/docs/reference/pygio-file.xml b/docs/reference/pygio-file.xml index 9dfff67b..ac858403 100644 --- a/docs/reference/pygio-file.xml +++ b/docs/reference/pygio-file.xml @@ -2664,7 +2664,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If the source is a directory and the target does not exist, or gio.FILE_COPY_OVERWRITE is specified - and the target is a file, then the G_IO_ERROR_WOULD_RECURSE error may be returned + and the target is a file, then the gio.ERROR_WOULD_RECURSE error may be returned (if the native move operation isn't available). @@ -2846,7 +2846,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. If the file does not exist, the gio.ERROR_NOT_FOUND error will be returned. Other errors @@ -2998,7 +2998,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. For symlinks, normally the information about the target of the symlink is returned, @@ -3008,7 +3008,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] files the information about the symlink itself will be returned. - If the file does not exist, the gio.IO_ERROR_NOT_FOUND error will be + If the file does not exist, the gio.ERROR_NOT_FOUND error will be returned. Other errors are possible too, and depend on what kind of filesystem the file is on. @@ -3147,7 +3147,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3183,7 +3183,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3219,11 +3219,11 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. - If the file does not exist, the gio.IO_ERROR_NOT_FOUND error will be returned. - If the file is a directory, the gio.IO_ERROR_IS_DIRECTORY error will be returned. + If the file does not exist, the gio.ERROR_NOT_FOUND error will be returned. + If the file is a directory, the gio.ERROR_IS_DIRECTORY error will be returned. Other errors are possible too, and depend on what kind of filesystem the file is on. @@ -3373,11 +3373,11 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. If you pass in a non-None etag value, then this value is compared - to the current entity tag of the file, and if they differ an gio.IO_ERROR_WRONG_ETAG error + to the current entity tag of the file, and if they differ an gio.ERROR_WRONG_ETAG error is returned. This generally means that the file has been changed since you last read it. You can get the new etag from gio.FileOutputStream.get_etag() @@ -3387,15 +3387,15 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If make_backup is True, this function will attempt to make a backup - of the current file before overwriting it. If this fails a gio.IO_ERROR_CANT_CREATE_BACKUP + of the current file before overwriting it. If this fails a gio.ERROR_CANT_CREATE_BACKUP error will be returned. If you want to replace anyway, try again with make_backup set to False. - If the file is a directory the gio.IO_ERROR_IS_DIRECTORY error will be returned, and - if the file is some other form of non-regular file then a gio.IO_ERROR_NOT_REGULAR_FILE + If the file is a directory the gio.ERROR_IS_DIRECTORY error will be returned, and + if the file is some other form of non-regular file then a gio.ERROR_NOT_REGULAR_FILE error will be returned. Some file systems don't allow all file names, and may return an - gio.IO_ERROR_INVALID_FILENAME error, and if the name is to long gio.IO_ERROR_FILENAME_TOO_LONG + gio.ERROR_INVALID_FILENAME error, and if the name is to long gio.ERROR_FILENAME_TOO_LONG will be returned. Other errors are possible too, and depend on what kind of filesystem the file is on. @@ -3525,7 +3525,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] The replace_contents() method replaces the contents of file with contents of length bytes. If etag is specified (not NULL) any existing - file must have that etag, or the error gio.IO_ERROR_WRONG_ETAG will be returned. + file must have that etag, or the error gio.ERROR_WRONG_ETAG will be returned. If make_backup is True, this function will attempt to make a backup of file. @@ -3533,7 +3533,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. The returned etag can be used to verify that the file hasn't changed the next time it is saved over. @@ -3765,7 +3765,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3819,7 +3819,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3873,7 +3873,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3927,7 +3927,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -3981,7 +3981,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -4035,7 +4035,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -4089,7 +4089,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error - gio.IO_ERROR_CANCELLED will be returned. + gio.ERROR_CANCELLED will be returned. @@ -4237,7 +4237,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. @@ -4291,7 +4291,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. @@ -4408,12 +4408,12 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] The trash() method sends file to the "Trashcan", if possible. This is similar to deleting it, but the user can recover it before emptying the trashcan. - Not all file systems support trashing, so this call can return the gio.IO_ERROR_NOT_SUPPORTED error. + Not all file systems support trashing, so this call can return the gio.ERROR_NOT_SUPPORTED error. If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. @@ -4459,7 +4459,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. When the operation is finished, callback will be called. You can then call diff --git a/docs/reference/pygio-inputstream.xml b/docs/reference/pygio-inputstream.xml index b1807e50..1bef333e 100644 --- a/docs/reference/pygio-inputstream.xml +++ b/docs/reference/pygio-inputstream.xml @@ -170,7 +170,7 @@ resources related to it. - Once the stream is closed, all other operations will return gio.IO_ERROR_CLOSED. + Once the stream is closed, all other operations will return gio.ERROR_CLOSED. Closing a stream multiple times will not return an error. @@ -186,13 +186,13 @@ On failure the first error that happened will be reported, but the close operation will finish as much as possible. A stream that failed to close will still return - gio.IO_ERROR_CLOSED for all operations. Still, it is important to check and report + gio.ERROR_CLOSED for all operations. Still, it is important to check and report the error to the user. If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. Cancelling a close will still leave + the error gio.ERROR_CANCELLED will be returned. Cancelling a close will still leave the stream closed, but some streams can use a faster close that doesn't block to e.g. check errors. @@ -366,7 +366,7 @@ If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. Cancelling a close will still leave + the error gio.ERROR_CANCELLED will be returned. Cancelling a close will still leave the stream closed, but some streams can use a faster close that doesn't block to e.g. check errors. @@ -436,10 +436,10 @@ During an async request no other sync and async calls are allowed, and - will result in gio.IO_ERROR_PENDING errors. + will result in gio.ERROR_PENDING errors. - A value of count larger than G_MAXSSIZE will cause a gio.IO_ERROR_INVALID_ARGUMENT error. + A value of count larger than G_MAXSSIZE will cause a gio.ERROR_INVALID_ARGUMENT error. On success, the number of bytes read into the buffer will be passed to the callback. @@ -520,7 +520,7 @@ If count is zero returns zero and does nothing. A value of count larger than - G_MAXSSIZE will cause a gio.IO_ERROR_INVALID_ARGUMENT error. + G_MAXSSIZE will cause a gio.ERROR_INVALID_ARGUMENT error. On success, the number of bytes read into the buffer is returned. It is @@ -531,7 +531,7 @@ If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. Cancelling a close will still leave + the error gio.ERROR_CANCELLED will be returned. Cancelling a close will still leave the stream closed, but some streams can use a faster close that doesn't block to e.g. check errors. @@ -613,7 +613,7 @@ If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thskip. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. Cancelling a close will still leave + the error gio.ERROR_CANCELLED will be returned. Cancelling a close will still leave the stream closed, but some streams can use a faster close that doesn't block to e.g. check errors. @@ -678,10 +678,10 @@ During an async request no other sync and async calls are allowed, and - will result in gio.IO_ERROR_PENDING errors. + will result in gio.ERROR_PENDING errors. - A value of count larger than G_MAXSSIZE will cause a gio.IO_ERROR_INVALID_ARGUMENT error. + A value of count larger than G_MAXSSIZE will cause a gio.ERROR_INVALID_ARGUMENT error. On success, the number of bytes skipped will be passed to the callback. It is diff --git a/docs/reference/pygio-mount.xml b/docs/reference/pygio-mount.xml index f4b1c999..aa635d4e 100644 --- a/docs/reference/pygio-mount.xml +++ b/docs/reference/pygio-mount.xml @@ -507,7 +507,7 @@ If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. When the operation is finished, callback will be called. You can then call @@ -541,7 +541,7 @@ The guess_content_type_finish() method finishes guessing content types of mount. If any errors occured during the operation, error will be set to contain the errors and FALSE will be returned. In particular, you may get an - gio.IO_ERROR_NOT_SUPPORTED if the mount does not support content guessing. + gio.ERROR_NOT_SUPPORTED if the mount does not support content guessing. @@ -579,7 +579,7 @@ If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. This is an synchronous operation and as such may block doing IO; see @@ -690,7 +690,7 @@ If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. When the operation is finished, callback will be called. You can then call @@ -792,7 +792,7 @@ If cancellable is not None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, - the error gio.IO_ERROR_CANCELLED will be returned. + the error gio.ERROR_CANCELLED will be returned. When the operation is finished, callback will be called. You can then call -- cgit v1.2.1