aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-10-02 09:43:37 -0500
committerTed Gould <ted@gould.cx>2014-10-02 09:43:37 -0500
commitef4ba155bcb9361e4a856ea35566bbaab8ecf6f1 (patch)
tree1d43d207c902da9d1eed75494170072fbe26c3cf /src/service.vala
parent0c348ae6792e65c95983d784207b81740d09abb9 (diff)
downloadayatana-indicator-sound-ef4ba155bcb9361e4a856ea35566bbaab8ecf6f1.tar.gz
ayatana-indicator-sound-ef4ba155bcb9361e4a856ea35566bbaab8ecf6f1.tar.bz2
ayatana-indicator-sound-ef4ba155bcb9361e4a856ea35566bbaab8ecf6f1.zip
Use silent mode to determine the icon on the panel
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.vala b/src/service.vala
index 8287b7f..280c12d 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -229,7 +229,7 @@ public class IndicatorSound.Service: Object {
void update_root_icon () {
double volume = this.volume_control.get_volume ();
string icon;
- if (this.volume_control.mute)
+ if (this.volume_control.mute || (this.accounts_service != null && this.accounts_service.silentMode))
icon = this.mute_blocks_sound ? "audio-volume-muted-blocking-panel" : "audio-volume-muted-panel";
else if (volume <= 0.0)
icon = "audio-volume-low-zero-panel";