[gnome-software] Improve a11y of the rating widget
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Improve a11y of the rating widget
- Date: Wed, 16 Oct 2013 02:51:40 +0000 (UTC)
commit c58c026e6958a542b29a3d6be3ca648a3d17bfd8
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 15 22:51:03 2013 -0400
Improve a11y of the rating widget
Set accessible names on the stars, so orca can read
them nicer than just 'push button'.
src/gs-star-widget.ui | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-star-widget.ui b/src/gs-star-widget.ui
index fb40ad8..66871e2 100644
--- a/src/gs-star-widget.ui
+++ b/src/gs-star-widget.ui
@@ -16,6 +16,11 @@
<style>
<class name="star"/>
</style>
+ <child internal-child="accessible">
+ <object class="AtkObject" id="button1-accessible">
+ <property name="accessible-name" translatable="yes">One Star</property>
+ </object>
+ </child>
<child>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
@@ -35,6 +40,11 @@
<style>
<class name="star"/>
</style>
+ <child internal-child="accessible">
+ <object class="AtkObject" id="button2-accessible">
+ <property name="accessible-name" translatable="yes">Two Stars</property>
+ </object>
+ </child>
<child>
<object class="GtkImage" id="image2">
<property name="visible">True</property>
@@ -54,6 +64,11 @@
<style>
<class name="star"/>
</style>
+ <child internal-child="accessible">
+ <object class="AtkObject" id="button3-accessible">
+ <property name="accessible-name" translatable="yes">Three Stars</property>
+ </object>
+ </child>
<child>
<object class="GtkImage" id="image3">
<property name="visible">True</property>
@@ -73,6 +88,11 @@
<style>
<class name="star"/>
</style>
+ <child internal-child="accessible">
+ <object class="AtkObject" id="button4-accessible">
+ <property name="accessible-name" translatable="yes">Four Stars</property>
+ </object>
+ </child>
<child>
<object class="GtkImage" id="image4">
<property name="visible">True</property>
@@ -92,6 +112,11 @@
<style>
<class name="star"/>
</style>
+ <child internal-child="accessible">
+ <object class="AtkObject" id="button5-accessible">
+ <property name="accessible-name" translatable="yes">Five Stars</property>
+ </object>
+ </child>
<child>
<object class="GtkImage" id="image5">
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]