diff options
author | Ted Gould <ted@gould.cx> | 2014-10-09 21:58:20 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-09 21:58:20 -0500 |
commit | 70601ef284279d6db7b8add3c50cd0350fdfb707 (patch) | |
tree | 292bcfc962f6ea005b7a7bed647d8ac7b73c39a7 | |
parent | 365f0a5af2b6327531f49a0fa3754359063dfea1 (diff) | |
download | ayatana-indicator-sound-70601ef284279d6db7b8add3c50cd0350fdfb707.tar.gz ayatana-indicator-sound-70601ef284279d6db7b8add3c50cd0350fdfb707.tar.bz2 ayatana-indicator-sound-70601ef284279d6db7b8add3c50cd0350fdfb707.zip |
Make sure to use the passed parameter for the volume.
-rw-r--r-- | src/volume-control.vala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala index dbc1797..e35b3e5 100644 --- a/src/volume-control.vala +++ b/src/volume-control.vala @@ -579,15 +579,15 @@ public class VolumeControl : Object { /* Using this to detect whether we're on the phone or not */ if (_pulse_use_stream_restore) { - if (_volume == 0.0) + if (volume == 0.0) _notification.update (_("Volume"), "", "audio-volume-muted"); - if (_volume > 0.0 && _volume <= 0.33) + if (volume > 0.0 && volume <= 0.33) _notification.update (_("Volume"), "", "audio-volume-low"); - if (_volume > 0.33 && _volume <= 0.66) + if (volume > 0.33 && volume <= 0.66) _notification.update (_("Volume"), "", "audio-volume-medium"); - if (_volume > 0.66 && _volume <= 1.0) + if (volume > 0.66 && volume <= 1.0) _notification.update (_("Volume"), "", "audio-volume-high"); - _notification.set_hint ("value", _volume * 100.0); + _notification.set_hint ("value", volume * 100.0); if (_active_sink_input == -1 || _valid_roles[_active_sink_input] != "multimedia") { /* No audio ping if we're playing multimedia */ _notification.set_hint ("sound-file", "/usr/share/sounds/ubuntu/stereo/message.ogg"); |