[gnome-shell] a11y: exposing percentage label on power menu items
- From: Alejandro PiÃeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] a11y: exposing percentage label on power menu items
- Date: Tue, 21 Aug 2012 16:19:30 +0000 (UTC)
commit 83a1c7283df6d87a2c4695ae727a7444c20f324b
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date: Tue Jul 31 17:39:32 2012 +0200
a11y: exposing percentage label on power menu items
https://bugzilla.gnome.org/show_bug.cgi?id=682366
js/ui/status/power.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/status/power.js b/js/ui/status/power.js
index c887406..1c18b4d 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]