aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-08-18 12:59:43 +0200
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-08-18 12:59:43 +0200
commitf76bbdf9eefaffd594078efe534ad1090f5aa41f (patch)
tree3ce78b6ea0a05ca332cbae3abbaae2472c0e2649
parentf48dff10382741e1c47ef63134f292c98c4e8d07 (diff)
parent04179cf043ffe4aadbba4504e30a89f97ff86267 (diff)
downloadayatana-indicator-sound-f76bbdf9eefaffd594078efe534ad1090f5aa41f.tar.gz
ayatana-indicator-sound-f76bbdf9eefaffd594078efe534ad1090f5aa41f.tar.bz2
ayatana-indicator-sound-f76bbdf9eefaffd594078efe534ad1090f5aa41f.zip
Merged lp:~xavi-garcia-mena/indicator-sound/icon-volume-zero
-rw-r--r--src/service.vala6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/service.vala b/src/service.vala
index f17d799..a69e231 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -239,12 +239,10 @@ public class IndicatorSound.Service: Object {
void update_root_icon () {
double volume = this.volume_control.volume.volume;
string icon;
- if (this.volume_control.mute)
+ if (this.volume_control.mute || volume <= 0.0)
icon = this.mute_blocks_sound ? "audio-volume-muted-blocking-panel" : "audio-volume-muted-panel";
else if (this.accounts_service != null && this.accounts_service.silentMode)
- icon = "audio-volume-muted-panel";
- else if (volume <= 0.0)
- icon = "audio-volume-low-zero-panel";
+ icon = "audio-volume-muted-panel";
else if (volume <= 0.3)
icon = "audio-volume-low-panel";
else if (volume <= 0.7)