[gnome-shell] a11y: calendar: full date string should be navigable
- From: Alejandro Piñeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] a11y: calendar: full date string should be navigable
- Date: Wed, 28 Aug 2013 17:17:16 +0000 (UTC)
commit a4c1eb12b4a552aabb1312428509e869fe568830
Author: Alejandro Piñeiro <apinheiro igalia com>
Date: Tue Aug 27 15:44:46 2013 +0200
a11y: calendar: full date string should be navigable
Also moved the set of label_actor of the menu some lines before,
to improve readability.
https://bugzilla.gnome.org/show_bug.cgi?id=706903
data/theme/gnome-shell.css | 4 ++++
js/ui/dateMenu.js | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 015a892..afb1f48 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1261,6 +1261,10 @@ StScrollBar StButton#vhandle:active {
color: #eeeeec;
}
+.datemenu-date-label:focus {
+ background-color: #999999;
+}
+
.calendar-day-base {
font-size: 9pt;
text-align: center;
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 7c1a597..bd72a66 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -50,6 +50,7 @@ const DateMenuButton = new Lang.Class({
this.parent(menuAlignment);
this._clockDisplay = new St.Label({ y_align: Clutter.ActorAlign.CENTER });
+ this.actor.label_actor = this._clockDisplay;
this.actor.add_actor(this._clockDisplay);
this.actor.add_style_class_name ('clock-display');
@@ -62,9 +63,8 @@ const DateMenuButton = new Lang.Class({
hbox.add(vbox);
// Date
- this._date = new St.Label();
- this.actor.label_actor = this._clockDisplay;
- this._date.style_class = 'datemenu-date-label';
+ this._date = new St.Label({ style_class: 'datemenu-date-label',
+ can_focus: true });
vbox.add(this._date);
this._eventList = new Calendar.EventsList();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]