From 40ae408b3b02dc78a05d26d57a3bc72a3a70c16c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Tue, 27 Aug 2013 13:50:25 +0200 Subject: [PATCH] a11y: calendar: add accessible name for next/prev month buttons https://bugzilla.gnome.org/show_bug.cgi?id=706903 --- js/ui/calendar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 29fe0089d..cb5a2940e 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -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));