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



commit 3edebfb81c7d013641dd641886830851e446adf3
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 306eeb8..43070be 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -285,6 +285,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]