diff options
author | Ted Gould <ted@gould.cx> | 2014-10-15 09:15:26 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-15 09:15:26 -0500 |
commit | c104a2064c6e328a20d134d5985828ba913b2bce (patch) | |
tree | fd1fc33f62bbde5a306cbafc0babf446f6bfbccb /src/volume-control.vala | |
parent | 714687351a4eb93f3fc712ef3ce2459371075142 (diff) | |
parent | 46c7d4c1cb1a6552ba205beaf233d66dcd4fc8a7 (diff) | |
download | ayatana-indicator-sound-c104a2064c6e328a20d134d5985828ba913b2bce.tar.gz ayatana-indicator-sound-c104a2064c6e328a20d134d5985828ba913b2bce.tar.bz2 ayatana-indicator-sound-c104a2064c6e328a20d134d5985828ba913b2bce.zip |
Fixes for icon values and manual tests
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r-- | src/volume-control.vala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala index fb29d52..b40189b 100644 --- a/src/volume-control.vala +++ b/src/volume-control.vala @@ -617,11 +617,13 @@ public class VolumeControl : Object /* Choose an icon */ string icon = "audio-volume-muted"; - if (volume > 0.0 && volume <= 0.33) + if (volume <= 0.0) + icon = "audio-volume-muted"; + else if (volume <= 0.3) icon = "audio-volume-low"; - if (volume > 0.33 && volume <= 0.66) + else if (volume <= 0.7) icon = "audio-volume-medium"; - if (volume > 0.66 && volume <= 1.0) + else icon = "audio-volume-high"; /* Choose a sound */ |