aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-10-09 21:58:20 -0500
committerTed Gould <ted@gould.cx>2014-10-09 21:58:20 -0500
commit70601ef284279d6db7b8add3c50cd0350fdfb707 (patch)
tree292bcfc962f6ea005b7a7bed647d8ac7b73c39a7 /src/volume-control.vala
parent365f0a5af2b6327531f49a0fa3754359063dfea1 (diff)
downloadayatana-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.
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r--src/volume-control.vala10
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");