a11y: exposing percentage label on power menu items

https://bugzilla.gnome.org/show_bug.cgi?id=682366
This commit is contained in:
Alejandro Piñeiro 2012-07-31 17:39:32 +02:00
parent 695f84e14f
commit 83a1c7283d

View File

@ -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) {