datetime: Use the currently preferred way for setting accessible names

For entries that have labels associated, use the mnemonic relationship; and for
those that don't, set up the accessible name.

https://bugzilla.gnome.org/show_bug.cgi?id=708219
This commit is contained in:
Kalev Lember 2013-09-17 11:05:56 +02:00
parent 1adf4fcbc4
commit 538032d26f

View file

@ -131,8 +131,8 @@
<property name="numeric">True</property>
<property name="wrap">True</property>
<child internal-child="accessible">
<object class="AtkObject" id="hour-accessible">
<property name="accessible-description" translatable="yes">Hour</property>
<object class="AtkObject" id="h_spinbutton-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Hour</property>
</object>
</child>
</object>
@ -168,8 +168,8 @@
<property name="numeric">True</property>
<property name="wrap">True</property>
<child internal-child="accessible">
<object class="AtkObject" id="minute-accessible">
<property name="accessible-description" translatable="yes">Minute</property>
<object class="AtkObject" id="m_spinbutton-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Minute</property>
</object>
</child>
</object>
@ -241,6 +241,7 @@
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Day</property>
<property name="mnemonic_widget">day-spinbutton</property>
<style>
<class name="dim-label"/>
</style>
@ -259,6 +260,7 @@
<property name="is_focus">True</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Month</property>
<property name="mnemonic_widget">month-combobox</property>
<style>
<class name="dim-label"/>
</style>
@ -276,6 +278,7 @@
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Year</property>
<property name="mnemonic_widget">year-spinbutton</property>
<style>
<class name="dim-label"/>
</style>
@ -295,11 +298,6 @@
<property name="width_chars">3</property>
<property name="numeric">True</property>
<property name="wrap">True</property>
<child internal-child="accessible">
<object class="AtkObject" id="day-accessible">
<property name="accessible-description" translatable="yes">Day</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">1</property>
@ -313,11 +311,6 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="model">month-liststore</property>
<child internal-child="accessible">
<object class="AtkObject" id="month-accessible">
<property name="accessible-description" translatable="yes">Month</property>
</object>
</child>
<child>
<object class="GtkCellRendererText" id="cellrenderertext3"/>
<attributes>
@ -340,11 +333,6 @@
<property name="width_chars">5</property>
<property name="numeric">True</property>
<property name="wrap">True</property>
<child internal-child="accessible">
<object class="AtkObject" id="year-accessible">
<property name="accessible-description" translatable="yes">Year</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">1</property>