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 --- docs/reference/pygio-classes.xml | 2 + docs/reference/pygio-constants.xml | 59 +++++++++++++ docs/reference/pygio-emblem.xml | 176 +++++++++++++++++++++++++++++++++++++ 3 files changed, 237 insertions(+) create mode 100644 docs/reference/pygio-constants.xml create mode 100644 docs/reference/pygio-emblem.xml (limited to 'docs/reference') 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