Setting proper name and role for system menu sliders

https://bugzilla.gnome.org/show_bug.cgi?id=706391
This commit is contained in:
Alejandro Piñeiro
2013-08-21 18:24:30 +02:00
parent c3c529b001
commit dd1651f2d1
3 changed files with 10 additions and 1 deletions

View File

@ -157,6 +157,11 @@ const OutputStreamSlider = new Lang.Class({
Name: 'OutputStreamSlider',
Extends: StreamSlider,
_init: function(control) {
this.parent(control);
this._slider.actor.accessible_name = _("Volume");
},
_connectStream: function(stream) {
this.parent(stream);
this._portChangedId = stream.connect('notify::port', Lang.bind(this, this._portChanged));
@ -205,6 +210,7 @@ const InputStreamSlider = new Lang.Class({
_init: function(control) {
this.parent(control);
this._slider.actor.accessible_name = _("Microphone");
this._control.connect('stream-added', Lang.bind(this, this._maybeShowInput));
this._control.connect('stream-removed', Lang.bind(this, this._maybeShowInput));
this._icon.icon_name = 'audio-input-microphone-symbolic';