From 83a1c7283df6d87a2c4695ae727a7444c20f324b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Tue, 31 Jul 2012 17:39:32 +0200 Subject: [PATCH] a11y: exposing percentage label on power menu items https://bugzilla.gnome.org/show_bug.cgi?id=682366 --- js/ui/status/power.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/status/power.js b/js/ui/status/power.js index c887406b0..1c18b4d59 100644 --- a/js/ui/status/power.js +++ b/js/ui/status/power.js @@ -187,6 +187,8 @@ const DeviceItem = new Lang.Class({ let percentLabel = new St.Label({ text: C_("percent of battery remaining", "%d%%").format(Math.round(percentage)) }); this.addActor(percentLabel, { align: St.Align.END }); + //FIXME: ideally we would like to expose this._label and percentLabel + this.actor.label_actor = percentLabel; }, _deviceTypeToString: function(type) {