From 16ea290997662ea55f210f24b5dd9295e7c6284f Mon Sep 17 00:00:00 2001 From: Joanmarie Diggs Date: Sat, 2 Jul 2011 15:20:39 -0400 Subject: [PATCH] Fix for bug 653872 - New ATK Roles --- atk-adaptor/object.c | 15 +++++++++++++++ common/generated-types.h | 28 +++++++++++++++++++++++++++- configure.ac | 2 +- 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/atk-adaptor/object.c b/atk-adaptor/object.c index 3511682..6795cf7 100644 --- a/atk-adaptor/object.c +++ b/atk-adaptor/object.c @@ -436,6 +436,21 @@ init_role_lookup_table (Accessibility_Role * role_table) role_table[ATK_ROLE_LINK] = Accessibility_ROLE_LINK; role_table[ATK_ROLE_INPUT_METHOD_WINDOW] = Accessibility_ROLE_INPUT_METHOD_WINDOW; + role_table[ATK_ROLE_TABLE_ROW] = Accessibility_ROLE_TABLE_ROW; + role_table[ATK_ROLE_TREE_ITEM] = Accessibility_ROLE_TREE_ITEM; + role_table[ATK_ROLE_DOCUMENT_SPREADSHEET] = + Accessibility_ROLE_DOCUMENT_SPREADSHEET; + role_table[ATK_ROLE_DOCUMENT_PRESENTATION] = + Accessibility_ROLE_DOCUMENT_PRESENTATION; + role_table[ATK_ROLE_DOCUMENT_TEXT] = Accessibility_ROLE_DOCUMENT_TEXT; + role_table[ATK_ROLE_DOCUMENT_WEB] = Accessibility_ROLE_DOCUMENT_WEB; + role_table[ATK_ROLE_DOCUMENT_EMAIL] = Accessibility_ROLE_DOCUMENT_EMAIL; + role_table[ATK_ROLE_COMMENT] = Accessibility_ROLE_COMMENT; + role_table[ATK_ROLE_LIST_BOX] = Accessibility_ROLE_LIST_BOX; + role_table[ATK_ROLE_GROUPING] = Accessibility_ROLE_GROUPING; + role_table[ATK_ROLE_IMAGE_MAP] = Accessibility_ROLE_IMAGE_MAP; + role_table[ATK_ROLE_NOTIFICATION] = Accessibility_ROLE_NOTIFICATION; + role_table[ATK_ROLE_INFO_BAR] = Accessibility_ROLE_INFO_BAR; return TRUE; } diff --git a/common/generated-types.h b/common/generated-types.h index 228dffa..28738dc 100644 --- a/common/generated-types.h +++ b/common/generated-types.h @@ -654,6 +654,19 @@ Accessibility_Role: * @Accessibility_ROLE_FORM: * @Accessibility_ROLE_LINK: * @Accessibility_ROLE_INPUT_METHOD_WINDOW: + * @Accessibility_ROLE_TABLE_ROW: + * @Accessibility_ROLE_TREE_ITEM: + * @Accessibility_ROLE_DOCUMENT_SPREADSHEET: + * @Accessibility_ROLE_DOCUMENT_PRESENTATION: + * @Accessibility_ROLE_DOCUMENT_TEXT: + * @Accessibility_ROLE_DOCUMENT_WEB: + * @Accessibility_ROLE_DOCUMENT_EMAIL: + * @Accessibility_ROLE_COMMENT: + * @Accessibility_ROLE_LIST_BOX: + * @Accessibility_ROLE_GROUPING: + * @Accessibility_ROLE_IMAGE_MAP: + * @Accessibility_ROLE_NOTIFICATION: + * @Accessibility_ROLE_INFO_BAR: * @Accessibility_ROLE_LAST_DEFINED: * * Bitfield/set of flags generated from the AT-SPI specification. @@ -749,6 +762,19 @@ typedef enum { Accessibility_ROLE_FORM, Accessibility_ROLE_LINK, Accessibility_ROLE_INPUT_METHOD_WINDOW, + Accessibility_ROLE_TABLE_ROW, + Accessibility_ROLE_TREE_ITEM, + Accessibility_ROLE_DOCUMENT_SPREADSHEET, + Accessibility_ROLE_DOCUMENT_PRESENTATION, + Accessibility_ROLE_DOCUMENT_TEXT, + Accessibility_ROLE_DOCUMENT_WEB, + Accessibility_ROLE_DOCUMENT_EMAIL, + Accessibility_ROLE_COMMENT, + Accessibility_ROLE_LIST_BOX, + Accessibility_ROLE_GROUPING, + Accessibility_ROLE_IMAGE_MAP, + Accessibility_ROLE_NOTIFICATION, + Accessibility_ROLE_INFO_BAR, Accessibility_ROLE_LAST_DEFINED, } Accessibility_Role; @@ -757,7 +783,7 @@ typedef enum { * * 1 higher than the highest valid value of #Accessibility_Role. */ -#define NUM_ACCESSIBILITY_ROLES (90+1) +#define NUM_ACCESSIBILITY_ROLES (103+1) #ifdef __cplusplus diff --git a/configure.ac b/configure.ac index 1167b7c..45492ce 100644 --- a/configure.ac +++ b/configure.ac @@ -51,7 +51,7 @@ PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.0.0]) AC_SUBST(GMODULE_LIBS) AC_SUBST(GMODULE_CFLAGS) -PKG_CHECK_MODULES(ATK, [atk >= 1.29.3]) +PKG_CHECK_MODULES(ATK, [atk >= 2.1.0]) AC_SUBST(ATK_LIBS) AC_SUBST(ATK_CFLAGS) -- 2.7.4