[gnome-shell] volume: Fix initial visibility of input
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] volume: Fix initial visibility of input
- Date: Tue, 25 Sep 2012 10:59:43 +0000 (UTC)
commit 908bf3b1170196e3b2eba267281e902254fb0684
Author: Florian MÃllner <fmuellner gnome org>
Date: Sat Sep 22 03:15:44 2012 +0200
volume: Fix initial visibility of input
Currently the visibility of input volume is only updated when a stream
is added/removed - apparently no one noticed until now, as in the normal
user session we get away with this as long as we have some startup sound,
but this is not the case in the lock screen, so we may end up showing
input volume incorrectly.
https://bugzilla.gnome.org/show_bug.cgi?id=684611
js/ui/status/volume.js | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js
index e96b65c..7f91e66 100644
--- a/js/ui/status/volume.js
+++ b/js/ui/status/volume.js
@@ -63,10 +63,7 @@ const VolumeMenu = new Lang.Class({
this.addMenuItem(this._inputTitle);
this.addMenuItem(this._inputSlider);
- if (this._control.get_state() == Gvc.MixerControlState.READY) {
- this._readOutput();
- this._readInput();
- }
+ this._onControlStateChanged();
},
scroll: function(direction) {
@@ -95,6 +92,7 @@ const VolumeMenu = new Lang.Class({
if (this._control.get_state() == Gvc.MixerControlState.READY) {
this._readOutput();
this._readInput();
+ this._maybeShowInput();
} else {
this.emit('icon-changed', null);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]