From: billh Date: Fri, 9 Jun 2006 15:25:23 +0000 (+0000) Subject: Added relations DESCRIPTION_FOR and DESCRIBED_BY (from ATK). X-Git-Tag: AT_SPI2_ATK_2_12_0~917 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=commitdiff_plain;h=fa20c3c909f547780862edc4ed5c1b0d4a504e31 Added relations DESCRIPTION_FOR and DESCRIBED_BY (from ATK). Bug #344264. git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@812 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- diff --git a/ChangeLog b/ChangeLog index 9e18721..c0b0e02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,7 +15,14 @@ * cspi/spi-roletypes.h, spi_accessible.c: Added marshalling definitions/conversions for new roles from ATK. - * libspi/accessible.c: Fixed marshalling of new role types from ATK. + * idl/Accessibility_Relation.idl: + * libspi/relation.c: + * cspi/spi.h, spi_accessible.c: Added SPI_RELATION_DESCRIBED_BY and + SPI_RELATION_DESCRIPTION_FOR. (bug #344264) Also + SPI_PARENT_WINDOW_OF, which was in ATK but not AT-SPI. + + * libspi/accessible.c: Fixed marshalling of new role types from + ATK. 2006-04-17 Matthias Clasen diff --git a/cspi/spi.h b/cspi/spi.h index 994efa2..559db3b 100644 --- a/cspi/spi.h +++ b/cspi/spi.h @@ -115,8 +115,9 @@ more target objects. * another's content. *@SPI_RELATION_EMBEDDED_BY: Inverse of %SPI_RELATION_EMBEDS, indicates that * this object's content is visualy embedded in another object. - *@SPI_RELATION_POPUP_FOR: Indicates that an object is a popup for another objec -t. + *@SPI_RELATION_POPUP_FOR: Indicates that an object is a popup for another objec *@SPI_RELATION_PARENT_WINDOW_OF: Indicates that an object is a parent window of another object. + *@SPI_RELATION_DESCRIBED_BY: Indicates that another object provides descriptive information about this object; more verbose than %SPI_RELATION_LABELLED_BY. + *@SPI_RELATION_DESCRIPTION_FOR: Indicates that an object provides descriptive information about another object; more verbose than %SPI_RELATION_LABEL_FOR. *@SPI_RELATION_LAST_DEFINED: Do not use, this is an implementation detail used * to identify the size of this enumeration. * @@ -138,6 +139,9 @@ typedef enum SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY, SPI_RELATION_POPUP_FOR, + SPI_RELATION_PARENT_WINDOW_OF, + SPI_RELATION_DESCRIPTION_FOR, + SPI_RELATION_DESCRIBED_BY, SPI_RELATION_LAST_DEFINED } AccessibleRelationType; diff --git a/cspi/spi_accessible.c b/cspi/spi_accessible.c index 8673b31..ab80b9e 100644 --- a/cspi/spi_accessible.c +++ b/cspi/spi_accessible.c @@ -1108,6 +1108,9 @@ cspi_init_relation_type_table (AccessibleRelationType *relation_type_table) relation_type_table [Accessibility_RELATION_EMBEDS] = SPI_RELATION_EMBEDS; relation_type_table [Accessibility_RELATION_EMBEDDED_BY] = SPI_RELATION_EMBEDDED_BY; relation_type_table [Accessibility_RELATION_POPUP_FOR] = SPI_RELATION_POPUP_FOR; + relation_type_table [Accessibility_RELATION_PARENT_WINDOW_OF] = SPI_RELATION_PARENT_WINDOW_OF; + relation_type_table [Accessibility_RELATION_DESCRIBED_BY] = SPI_RELATION_DESCRIBED_BY; + relation_type_table [Accessibility_RELATION_DESCRIPTION_FOR] = SPI_RELATION_DESCRIPTION_FOR; return TRUE; } diff --git a/docs/reference/cspi/tmpl/spi_relation.sgml b/docs/reference/cspi/tmpl/spi_relation.sgml index f56be71..9d81c1a 100644 --- a/docs/reference/cspi/tmpl/spi_relation.sgml +++ b/docs/reference/cspi/tmpl/spi_relation.sgml @@ -36,6 +36,9 @@ AccessibleRelations and RelationSets @SPI_RELATION_EMBEDS: @SPI_RELATION_EMBEDDED_BY: @SPI_RELATION_POPUP_FOR: +@SPI_RELATION_PARENT_WINDOW_OF: +@SPI_RELATION_DESCRIPTION_FOR: +@SPI_RELATION_DESCRIBED_BY: @SPI_RELATION_LAST_DEFINED: diff --git a/idl/Accessibility_Relation.idl b/idl/Accessibility_Relation.idl index b6f2911..1f81b48 100644 --- a/idl/Accessibility_Relation.idl +++ b/idl/Accessibility_Relation.idl @@ -82,6 +82,12 @@ module Accessibility { RELATION_POPUP_FOR, /** This is the reciprocal relation to RELATION_POPUP_FOR. */ RELATION_PARENT_WINDOW_OF, + /** Indicates that an object provides descriptive information + * about another object; more verbose than RELATION_LABEL_FOR. */ + RELATION_DESCRIPTION_FOR, + /** Indicates that another object provides descriptive information + * about this object; more verbose than RELATION_LABELLED_BY. */ + RELATION_DESCRIBED_BY, /** Do not use as a parameter value, used to determine the size of the enumeration. */ RELATION_LAST_DEFINED }; diff --git a/libspi/relation.c b/libspi/relation.c index 62b238d..6d487d4 100644 --- a/libspi/relation.c +++ b/libspi/relation.c @@ -50,6 +50,9 @@ spi_init_relation_type_table (Accessibility_RelationType *types) types[ATK_RELATION_EMBEDDED_BY] = Accessibility_RELATION_EMBEDDED_BY; types[ATK_RELATION_POPUP_FOR] = Accessibility_RELATION_POPUP_FOR; types[ATK_RELATION_PARENT_WINDOW_OF] = Accessibility_RELATION_PARENT_WINDOW_OF; + types[ATK_RELATION_DESCRIPTION_FOR] = Accessibility_RELATION_DESCRIPTION_FOR; + types[ATK_RELATION_DESCRIBED_BY] = Accessibility_RELATION_DESCRIBED_BY; + return TRUE; }