From cc9864de0a55723577d3fbe8b04d36f69fc35a22 Mon Sep 17 00:00:00 2001 From: Gian Mario Tagliaretti Date: Mon, 9 Mar 2009 21:17:12 +0000 Subject: Add gio.Emblem and constants in docs. 2009-03-09 Gian Mario Tagliaretti * docs/Makefile.am: * docs/reference/pygio-classes.xml: * docs/reference/pygio-constants.xml: * docs/reference/pygio-emblem.xml: Add gio.Emblem and constants in docs. svn path=/trunk/; revision=1025 --- ChangeLog | 7 ++ docs/Makefile.am | 6 +- docs/reference/pygio-classes.xml | 2 + docs/reference/pygio-constants.xml | 59 +++++++++++++ docs/reference/pygio-emblem.xml | 176 +++++++++++++++++++++++++++++++++++++ 5 files changed, 248 insertions(+), 2 deletions(-) create mode 100644 docs/reference/pygio-constants.xml create mode 100644 docs/reference/pygio-emblem.xml diff --git a/ChangeLog b/ChangeLog index 2a226cb..79719b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-03-09 Gian Mario Tagliaretti + + * docs/Makefile.am: + * docs/reference/pygio-classes.xml: + * docs/reference/pygio-constants.xml: + * docs/reference/pygio-emblem.xml: Add gio.Emblem and constants in docs. + 2009-03-08 Gian Mario Tagliaretti * docs/reference/pygio-classes.xml: diff --git a/docs/Makefile.am b/docs/Makefile.am index dacdf45..9f40a4d 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -14,9 +14,10 @@ HTML_FILES = \ html/class-glibmainloop.html \ html/glib-constants.html \ html/glib-functions.html \ - html/gio-applaunchcontext.html \ html/gobject-class-reference.html \ html/glib-class-reference.html \ + html/gio-applaunchcontext.html \ + html/gio-constants.html \ html/gio-class-reference.html \ html/gobject-constants.html \ html/gobject-functions.html \ @@ -42,7 +43,8 @@ XML_FILES = \ reference/pyglib-maincontext.xml \ reference/pyglib-mainloop.xml \ reference/pygio-classes.xml \ - reference/pygio-applaunchcontext.xml + reference/pygio-applaunchcontext.xml \ + reference/pygio-constants.xml XSL_FILES = \ xsl/common.xsl \ diff --git a/docs/reference/pygio-classes.xml b/docs/reference/pygio-classes.xml index 954a1e8..a830d85 100644 --- a/docs/reference/pygio-classes.xml +++ b/docs/reference/pygio-classes.xml @@ -9,5 +9,7 @@ + + diff --git a/docs/reference/pygio-constants.xml b/docs/reference/pygio-constants.xml new file mode 100644 index 0000000..37e4143 --- /dev/null +++ b/docs/reference/pygio-constants.xml @@ -0,0 +1,59 @@ + + + + + + gio Constants + the built-in constants of the gio module + + + + Synopsis + + + + + + + + + Description + + + Gio Emblem Origin Constants + + + GEmblemOrigin is used to add information about the origin of the emblem to GEmblem. + + + + + gio.EMBLEM_ORIGIN_DEVICE + + Embleme adds device-specific information. + + + + gio.EMBLEM_ORIGIN_LIVEMETADATA + + Emblem depicts live metadata, such as "readonly". + + + + gio.EMBLEM_ORIGIN_TAG + + Emblem comes from a user-defined tag, e.g. set by nautilus (in the future). + + + + gio.EMBLEM_ORIGIN_UNKNOWN + + Emblem of unknown origin. + + + + + + + diff --git a/docs/reference/pygio-emblem.xml b/docs/reference/pygio-emblem.xml new file mode 100644 index 0000000..f8f4de3 --- /dev/null +++ b/docs/reference/pygio-emblem.xml @@ -0,0 +1,176 @@ + + + + + + gio.Emblem + An object for emblems. + + + + Synopsis + + + gio.Emblem + gobject.GObject + gio.Icon + + + gio.Emblem + icon + + + + get_icon + + + + get_origin + + + + + + +Functions + + + gio.emblem_new_with_origin + origin + + + + + + Ancestry + ++-- gobject.GObject + +-- gio.Emblem + + + + + + Description + + + The gio.Emblem + class is an implementation of gio.Icon + that supports having an emblem, which is an icon with additional properties. + It can than be added to a + gio.EmblemedIcon. + + + Currently, only metainformation about the emblem's origin is supported. + More may be added in the future. + + + + + Constructor + + + gio.Emblem + icon + + + + icon : + a + gio.Icon containing the icon. + + + + Returns : + a new + gio.Emblem. + + + + + + Creates a new gio.Emblem for icon. + + + + + + Methods + + + gio.Emblem.get_icon + + + get_icon + + + + + + Returns : + a + gio.Icon. + + + + + + The get_icon() method gives back the icon from emblem. + + + + + gio.Emblem.get_origin + + + get_origin + + + + + + Returns : + the origin of the emblem. + + + + + + The get_origin() method gets the origin of the emblem. + + + + + + Functions + + + gio.emblem_new_with_origin + + + emblem_new_with_origin + origin + + + + + origin : + a + defining the emblem's origin . + + + + Returns : + A gio.Emblem. + + + + + + The emblem_new_with_origin() function creates + a new emblem for icon. + + + + -- cgit