[pygobject] Docs: replace gio.IO_ERROR_* with gio.ERROR_*



commit e9f7fd414e94595e40eb1ba0fc471ca69136d82f
Author: Paul Bolle <pebolle tiscali nl>
Date:   Thu Apr 8 11:52:25 2010 +0200

    Docs: replace gio.IO_ERROR_* with gio.ERROR_*
    
    Signed-off-by: Paul Bolle <pebolle tiscali nl>

 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(-)
---
diff --git a/docs/reference/pygio-file.xml b/docs/reference/pygio-file.xml
index 9dfff67..ac85840 100644
--- a/docs/reference/pygio-file.xml
+++ b/docs/reference/pygio-file.xml
@@ -2664,7 +2664,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             </para>
             <para>
                 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).
             </para>
         </refsect2>
@@ -2846,7 +2846,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
             <para>
                 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 ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
             <para>
                 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. 
             </para>
             <para>
-                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.
             </para>
@@ -3147,7 +3147,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
         </refsect2>
 
@@ -3183,7 +3183,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
         </refsect2>
 
@@ -3219,11 +3219,11 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
             <para>
-                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.
             </para>
         </refsect2>
@@ -3373,11 +3373,11 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
             <para>
                 If you pass in a non-<literal>None</literal> 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
                 <methodname><link linkend="method-giofileoutputstream--get-etag">gio.FileOutputStream.get_etag</link></methodname>()
@@ -3387,15 +3387,15 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             </para>
             <para>
                 If make_backup is <literal>True</literal>, 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 <literal>False</literal>. 
             </para>
             <para>
-                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.
             </para>
         </refsect2>
@@ -3525,7 +3525,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 The <methodname>replace_contents</methodname>() 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. 
             </para>
             <para>
                 If make_backup is <literal>True</literal>, this function will attempt to make a backup of file. 
@@ -3533,7 +3533,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
             <para>
                 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 ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
         </refsect2>
 
@@ -3819,7 +3819,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
         </refsect2>
 
@@ -3873,7 +3873,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
         </refsect2>
 
@@ -3927,7 +3927,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
         </refsect2>
 
@@ -3981,7 +3981,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
         </refsect2>
 
@@ -4035,7 +4035,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
         </refsect2>
 
@@ -4089,7 +4089,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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. 
             </para>
         </refsect2>
 
@@ -4237,7 +4237,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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.
             </para>
         </refsect2>
 
@@ -4291,7 +4291,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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.
             </para>
         </refsect2>
 
@@ -4408,12 +4408,12 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 The <methodname>trash</methodname>() 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. 
             </para>
             <para>
                 If cancellable is not <literal>None</literal>, 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.
             </para>
         </refsect2>
 
@@ -4459,7 +4459,7 @@ URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
             <para>
                 If cancellable is not <literal>None</literal>, 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.
             </para>
             <para>
                 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 b1807e5..1bef333 100644
--- a/docs/reference/pygio-inputstream.xml
+++ b/docs/reference/pygio-inputstream.xml
@@ -170,7 +170,7 @@
                 resources related to it.
             </para>
             <para>
-                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.
             </para>
             <para>
@@ -186,13 +186,13 @@
             <para>
                 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.
             </para>
             <para>
                 If cancellable is not <literal>None</literal>, 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.
             </para>
@@ -366,7 +366,7 @@
             <para>
                 If cancellable is not <literal>None</literal>, 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.
             </para>
@@ -436,10 +436,10 @@
             </para>
             <para>
                 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.
             </para>
             <para>
-                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.
             </para>
             <para>
                 On success, the number of bytes read into the buffer will be passed to the callback.
@@ -520,7 +520,7 @@
             </para>
             <para>
                 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.
             </para>
             <para>
                 On success, the number of bytes read into the buffer is returned. It is
@@ -531,7 +531,7 @@
             <para>
                If cancellable is not <literal>None</literal>, 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.
             </para>
@@ -613,7 +613,7 @@
             <para>
                If cancellable is not <literal>None</literal>, 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.
             </para>
@@ -678,10 +678,10 @@
             </para>
             <para>
                 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.
             </para>
             <para>
-                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.
             </para>
             <para>
                 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 f4b1c99..aa635d4 100644
--- a/docs/reference/pygio-mount.xml
+++ b/docs/reference/pygio-mount.xml
@@ -507,7 +507,7 @@
             <para>
                 If cancellable is not <literal>None</literal>, 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.
             </para>
             <para>
                 When the operation is finished, callback will be called. You can then call
@@ -541,7 +541,7 @@
                 The <methodname>guess_content_type_finish</methodname>() 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.
             </para>
         </refsect2>
 
@@ -579,7 +579,7 @@
             <para>
                 If cancellable is not <literal>None</literal>, 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.
             </para>
             <para>
                 This is an synchronous operation and as such may block doing IO; see
@@ -690,7 +690,7 @@
             <para>
                 If cancellable is not <literal>None</literal>, 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.
             </para>
             <para>
                 When the operation is finished, callback will be called. You can then call
@@ -792,7 +792,7 @@
             <para>
                 If cancellable is not <literal>None</literal>, 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.
             </para>
             <para>
                 When the operation is finished, callback will be called. You can then call



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]