From 9d9ae97b8a49836ec1f3b8d6529bafe1cc06d4d7 Mon Sep 17 00:00:00 2001 From: Paul Pogonyshev Date: Mon, 15 Jun 2009 23:19:47 +0300 Subject: Make gio.Emblem constructor new-style Add optional 'origin' parameter. Expand gio.Emblem documentation and mark gio.emblem_new_with_origin as sort-of-deprecated. --- docs/reference/pygio-emblem.xml | 51 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/reference/pygio-emblem.xml b/docs/reference/pygio-emblem.xml index d76f2d8..032b0ff 100644 --- a/docs/reference/pygio-emblem.xml +++ b/docs/reference/pygio-emblem.xml @@ -19,6 +19,7 @@ gio.Emblem icon + origingio.EMBLEM_ORIGIN_UNKNOWN @@ -37,6 +38,7 @@ gio.emblem_new_with_origin + icon origin @@ -60,6 +62,33 @@ + + gio.Emblem Properties + +
+ + + + + + + + "icon" + Read - Write - Construct Only + The actual icon of the emblem. + + + "origin" + Read - Write - Construct Only + Tells which origin the emblem is derived from. + + + + +
+ +
+ Description @@ -67,7 +96,7 @@ 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 + It can then be added to a gio.EmblemedIcon. @@ -82,6 +111,7 @@ gio.Emblem icon + origingio.EMBLEM_ORIGIN_UNKNOWN @@ -90,6 +120,12 @@ gio.Icon containing the icon. + + origin : + + origin of the emblem. + + Returns : a new @@ -97,6 +133,10 @@ + + + Parameter origin is available since PyGObject 2.20. + Creates a new gio.Emblem for icon. @@ -159,6 +199,7 @@ emblem_new_with_origin + icon origin @@ -166,7 +207,7 @@ origin : a - defining the emblem's origin . + defining the emblem's origin. @@ -176,6 +217,12 @@ + + While this method is not deprecated, with 2.20 and up it is recommended + to use the constructor instead. + + + The emblem_new_with_origin() function creates a new emblem for icon. -- cgit