From f466dca880cc6ea68b9fe236943eea7a07d33520 Mon Sep 17 00:00:00 2001 From: Gian Mario Tagliaretti Date: Sun, 3 May 2009 11:03:25 +0200 Subject: Add docs for the gio.LoadableIcon class --- docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-loadableicon.xml | 198 ++++++++++++++++++++++++++++++++++ 3 files changed, 201 insertions(+) create mode 100644 docs/reference/pygio-loadableicon.xml (limited to 'docs') diff --git a/docs/Makefile.am b/docs/Makefile.am index c697aae..fd8ed9e 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -28,6 +28,7 @@ HTML_FILES = \ html/class-giofileenumerator.html \ html/class-giofileicon.html \ html/class-gioicon.html \ + html/class-gioloadableicon.html \ html/class-giomount.html \ html/class-giomountoperation.html \ html/class-gioseekable.html \ @@ -74,6 +75,7 @@ XML_FILES = \ reference/pygio-fileenumerator.xml \ reference/pygio-fileicon.xml \ reference/pygio-icon.xml \ + reference/pygio-loadableicon.xml \ reference/pygio-mount.xml \ reference/pygio-mountoperation.xml \ reference/pygio-seekable.xml \ diff --git a/docs/reference/pygio-classes.xml b/docs/reference/pygio-classes.xml index 8cc47bc..c4722b3 100644 --- a/docs/reference/pygio-classes.xml +++ b/docs/reference/pygio-classes.xml @@ -19,6 +19,7 @@ + diff --git a/docs/reference/pygio-loadableicon.xml b/docs/reference/pygio-loadableicon.xml new file mode 100644 index 0000000..93198c4 --- /dev/null +++ b/docs/reference/pygio-loadableicon.xml @@ -0,0 +1,198 @@ + + + + + + gio.LoadableIcon + Interface for icons. + + + + Synopsis + + + gio.LoadableIcon + gobject.GInterface + + + load + size0 + cancellableNone + + + load_async + callback + size0 + cancellableNone + user_dataNone + + + load_finish + res + + + + + + + + Ancestry + ++-- gobject.GInterface + +-- gio.LoadableIcon + + + + + + Prerequisites + + gio.LoadableIcon requires + gio.Icon. and + gobject.GObject + + + + + Known Implementation + + gio.LoadableIcon is implemented by + gio.FileIcon + + + + + Description + + + gio.LoadableIcon + extends the gio.Icon + interface and adds the ability to load icons from streams. + + + + + Methods + + + gio.LoadableIcon.load + + + load + size0 + cancellableNone + + + + + size : + an integer + + + + cancellable : + optional + gio.Cancellable + object, None to ignore. + + + + Returns : + a 2 tuple containing a + gio.InputStream + to read the icon from and a string containing the icon type. + + + + + + The load() method loads a loadable icon. + For the asynchronous version of this function, see + gio.LoadableIcon.load_async(). + + + + + gio.LoadableIcon.load_async + + + load_async + callback + size0 + cancellableNone + user_dataNone + + + + + callback : + a GAsyncReadyCallback to call when the request is satisfied. + + + + size : + an integer + + + + cancellable : + optional + gio.Cancellable + object, None to ignore. + + + + user_data : + the data to pass to callback function. + + + + + + The load_async() method loads an icon asynchronously. + + + For more details, see + gio.LoadableIcon.load() + which is the synchronous version of this call. + + + When the operation is finished, callback will be called. You can then call + gio.LoadableIcon.load_finish() + to get the result of the operation. + + + + + gio.LoadableIcon.load_finish + + + load_finish + res + + + + + res : + a + gio.AsyncResult. + + + + Returns : + a 2 tuple containing a + gio.InputStream + to read the icon from and a string containing the icon type. + + + + + + The load_finish() method finishes an asynchronous + icon load started in + gio.LoadableIcon.load_async(). + + + + -- cgit