a11y: calendar: add accessible name for next/prev month buttons

https://bugzilla.gnome.org/show_bug.cgi?id=706903
This commit is contained in:
Alejandro Piñeiro 2013-08-27 13:50:25 +02:00
parent 84d8d4f622
commit 40ae408b3b

View File

@ -444,6 +444,7 @@ const Calendar = new Lang.Class({
{ row: 0, col: 0, col_span: offsetCols + 7 });
this._backButton = new St.Button({ style_class: 'calendar-change-month-back',
accessible_name: _("Previous month"),
can_focus: true });
this._topBox.add(this._backButton);
this._backButton.connect('clicked', Lang.bind(this, this._onPrevMonthButtonClicked));
@ -452,6 +453,7 @@ const Calendar = new Lang.Class({
this._topBox.add(this._monthLabel, { expand: true, x_fill: false, x_align: St.Align.MIDDLE });
this._forwardButton = new St.Button({ style_class: 'calendar-change-month-forward',
accessible_name: _("Next month"),
can_focus: true });
this._topBox.add(this._forwardButton);
this._forwardButton.connect('clicked', Lang.bind(this, this._onNextMonthButtonClicked));