[at-spi2-core] Add ATSPI_ROLE_LEVEL_BAR



commit 65d0b92ac3abe847e667838bc1896c542b5c0d07
Author: Mike Gorse <mgorse suse com>
Date:   Thu Jan 31 15:40:37 2013 -0600

    Add ATSPI_ROLE_LEVEL_BAR
    
    Add "level bar" role corresponding to the new atk role.

 atspi/atspi-accessible.c |    3 ++-
 atspi/atspi-constants.h  |    4 ++++
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c
index 5f98199..9d79a81 100644
--- a/atspi/atspi-accessible.c
+++ b/atspi/atspi-accessible.c
@@ -301,7 +301,8 @@ static const char *role_names [] =
   "grouping",
   "image map",
   "notification",
-  "info bar"
+  "info bar",
+  "level bar"
 };
 
 #define MAX_ROLES (sizeof (role_names) / sizeof (char *))
diff --git a/atspi/atspi-constants.h b/atspi/atspi-constants.h
index cb85a92..98564e0 100644
--- a/atspi/atspi-constants.h
+++ b/atspi/atspi-constants.h
@@ -1065,6 +1065,9 @@ typedef enum {
  * particular application.
  * @ATSPI_ROLE_INFO_BAR: An object designed to present a message to the user
  * within an existing window.
+ * ATSPI_ROLE_LEVEL_BAR: A bar that serves as a level indicator to, for
+ * instance, show the strength of a password or the state of a battery. 
+ * Since: 2.8
  * @ATSPI_ROLE_LAST_DEFINED: Not a valid role, used for finding end of
  * enumeration.
  *
@@ -1176,6 +1179,7 @@ typedef enum {
     ATSPI_ROLE_IMAGE_MAP,
     ATSPI_ROLE_NOTIFICATION,
     ATSPI_ROLE_INFO_BAR,
+    ATSPI_ROLE_LEVEL_BAR,
     ATSPI_ROLE_LAST_DEFINED,
 } AtspiRole;
 



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