[pyatspi2] Add support for TITLE_BAR, BLOCK_QUOTE, AUDIO and VIDEO roles
- From: Alejandro Piñeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] Add support for TITLE_BAR, BLOCK_QUOTE, AUDIO and VIDEO roles
- Date: Mon, 18 Nov 2013 18:49:40 +0000 (UTC)
commit fbaad2bd501cab6ce65f5b7af7c433237d63a424
Author: Alejandro Piñeiro <apinheiro igalia com>
Date: Tue Oct 29 19:12:02 2013 +0100
Add support for TITLE_BAR, BLOCK_QUOTE, AUDIO and VIDEO roles
https://bugzilla.gnome.org/show_bug.cgi?id=710464
configure.ac | 2 +-
pyatspi/role.py | 16 ++++++++++++++--
2 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e32b684..8ef1d89 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,7 +82,7 @@ if test "$enable_tests" = "yes"; then
AC_SUBST(LIB_XML_LIBS)
AC_SUBST(LIB_XML_CFLAGS)
- PKG_CHECK_MODULES(ATK, [atk >= 2.1.0])
+ PKG_CHECK_MODULES(ATK, [atk >= 2.11.2])
AC_SUBST(ATK_LIBS)
AC_SUBST(ATK_CFLAGS)
diff --git a/pyatspi/role.py b/pyatspi/role.py
index 6f64250..e291311 100644
--- a/pyatspi/role.py
+++ b/pyatspi/role.py
@@ -122,7 +122,11 @@ class Role(_Enum):
101:'ROLE_NOTIFICATION',
102:'ROLE_INFO_BAR',
103:'ROLE_LEVEL_BAR',
- 104:'ROLE_LAST_DEFINED',
+ 104:'ROLE_TITLE_BAR',
+ 105:'ROLE_BLOCK_QUOTE',
+ 106:'ROLE_AUDIO',
+ 107:'ROLE_VIDEO',
+ 108:'ROLE_LAST_DEFINED',
}
ROLE_ACCELERATOR_LABEL = Role(1)
@@ -130,7 +134,9 @@ ROLE_ALERT = Role(2)
ROLE_ANIMATION = Role(3)
ROLE_APPLICATION = Role(75)
ROLE_ARROW = Role(4)
+ROLE_AUDIO = Role(106)
ROLE_AUTOCOMPLETE = Role(76)
+ROLE_BLOCK_QUOTE = Role(105)
ROLE_CALENDAR = Role(5)
ROLE_CANVAS = Role(6)
ROLE_CAPTION = Role(81)
@@ -178,7 +184,7 @@ ROLE_INPUT_METHOD_WINDOW = Role(89)
ROLE_INTERNAL_FRAME = Role(28)
ROLE_INVALID = Role(0)
ROLE_LABEL = Role(29)
-ROLE_LAST_DEFINED = Role(103)
+ROLE_LAST_DEFINED = Role(108)
ROLE_LAYERED_PANE = Role(30)
ROLE_LEVEL_BAR = Role(103)
ROLE_LINK = Role(88)
@@ -221,6 +227,7 @@ ROLE_TABLE_ROW_HEADER = Role(58)
ROLE_TEAROFF_MENU_ITEM = Role(59)
ROLE_TERMINAL = Role(60)
ROLE_TEXT = Role(61)
+ROLE_TITLE_BAR = Role(104)
ROLE_TOGGLE_BUTTON = Role(62)
ROLE_TOOL_BAR = Role(63)
ROLE_TOOL_TIP = Role(64)
@@ -228,6 +235,7 @@ ROLE_TREE = Role(65)
ROLE_TREE_ITEM = Role(91)
ROLE_TREE_TABLE = Role(66)
ROLE_UNKNOWN = Role(67)
+ROLE_AUDIO = Role(107)
ROLE_VIEWPORT = Role(68)
ROLE_WINDOW = Role(69)
@@ -334,6 +342,10 @@ ROLE_NAMES = {
ROLE_NOTIFICATION:'notification',
ROLE_INFO_BAR:'info bar',
ROLE_LEVEL_BAR:'level bar',
+ ROLE_TITLE_BAR:'title bar',
+ ROLE_BLOCK_QUOTE:'block quote',
+ ROLE_AUDIO:'audio',
+ ROLE_VIDEO:'video',
}
#END----------------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]