[gtk+/a11y] GtkSpinner: set a suitable role for the accessible



commit 0210662e3469ecb2924db30fe0a2f3096958b4cc
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jun 23 18:31:22 2011 -0400

    GtkSpinner: set a suitable role for the accessible
    
    The consensus of the accessibility team was that this is
    an animation. Update tests to match.

 gtk/gtkspinner.c       |    1 +
 tests/a11y/spinner.txt |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index f4a3427..76d9fef 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -286,6 +286,7 @@ gtk_spinner_accessible_initialize (AtkObject *accessible,
 
   atk_object_set_name (accessible, C_("throbbing progress animation widget", "Spinner"));
   atk_object_set_description (accessible, _("Provides visual indication of progress"));
+  atk_object_set_role (accessible, ATK_ROLE_ANIMATION);
 }
 
 static void
diff --git a/tests/a11y/spinner.txt b/tests/a11y/spinner.txt
index 35a91b2..21bdd94 100644
--- a/tests/a11y/spinner.txt
+++ b/tests/a11y/spinner.txt
@@ -7,7 +7,7 @@ window1
   layer: window
   alpha: 1
   spinner1
-    "unknown"
+    "animation"
     parent: window1
     index: 0
     name: Spinner



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