[pyatspi2] Add new roles for fractions, roots, subscripts, and superscripts



commit c08fdaa099b8b0410d4dabf36325897bea73ba27
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Jan 23 11:45:15 2015 -0500

    Add new roles for fractions, roots, subscripts, and superscripts
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743413

 pyatspi/role.py |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/role.py b/pyatspi/role.py
index de493a9..900988b 100644
--- a/pyatspi/role.py
+++ b/pyatspi/role.py
@@ -135,7 +135,11 @@ class Role(_Enum):
                 114:'ROLE_RATING',
                 115:'ROLE_TIMER',
                 116:'ROLE_STATIC',
-                117:'ROLE_LAST_DEFINED',
+                117:'ROLE_MATH_FRACTION',
+                118:'ROLE_MATH_ROOT',
+                119:'ROLE_SUBSCRIPT',
+                120:'ROLE_SUPERSCRIPT',
+                121:'ROLE_LAST_DEFINED',
         }
 
 ROLE_ACCELERATOR_LABEL = Role(1)
@@ -196,7 +200,7 @@ ROLE_INTERNAL_FRAME = Role(28)
 ROLE_INVALID = Role(0)
 ROLE_LABEL = Role(29)
 ROLE_LANDMARK = Role(110)
-ROLE_LAST_DEFINED = Role(117)
+ROLE_LAST_DEFINED = Role(121)
 ROLE_LAYERED_PANE = Role(30)
 ROLE_LEVEL_BAR = Role(103)
 ROLE_LINK = Role(88)
@@ -206,6 +210,8 @@ ROLE_LIST_ITEM = Role(32)
 ROLE_LOG = Role(111)
 ROLE_MARQUEE = Role(112)
 ROLE_MATH = Role(113)
+ROLE_MATH_FRACTION = Role(117)
+ROLE_MATH_ROOT = Role(118)
 ROLE_MENU = Role(33)
 ROLE_MENU_BAR = Role(34)
 ROLE_MENU_ITEM = Role(35)
@@ -236,6 +242,8 @@ ROLE_SPIN_BUTTON = Role(52)
 ROLE_SPLIT_PANE = Role(53)
 ROLE_STATIC = Role(116)
 ROLE_STATUS_BAR = Role(54)
+ROLE_SUBSCRIPT = Role(119)
+ROLE_SUPERSCRIPT = Role(120)
 ROLE_TABLE = Role(55)
 ROLE_TABLE_CELL = Role(56)
 ROLE_TABLE_COLUMN_HEADER = Role(57)
@@ -373,6 +381,10 @@ ROLE_NAMES = {
         ROLE_RATING:'rating',
         ROLE_TIMER:'timer',
         ROLE_STATIC:'static',
+        ROLE_MATH_FRACTION:'math fraction',
+        ROLE_MATH_ROOT: 'math root',
+        ROLE_SUBSCRIPT: 'subscript',
+        ROLE_SUPERSCRIPT: 'superscript',
 }
 
 #END----------------------------------------------------------------------------


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]