aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control-pulse.vala
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-11-19 15:14:47 +0100
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-11-19 15:14:47 +0100
commitf06c2ddee06bce9ed8320d78a65fd6206db3e6f1 (patch)
tree6c99d5b91281ce49757b0ac1f263a7309bd125bf /src/volume-control-pulse.vala
parent73af3f742f2085a1a21616edc92347b105f48e92 (diff)
downloadayatana-indicator-sound-f06c2ddee06bce9ed8320d78a65fd6206db3e6f1.tar.gz
ayatana-indicator-sound-f06c2ddee06bce9ed8320d78a65fd6206db3e6f1.tar.bz2
ayatana-indicator-sound-f06c2ddee06bce9ed8320d78a65fd6206db3e6f1.zip
Fix issues with warning dialog
Diffstat (limited to 'src/volume-control-pulse.vala')
-rw-r--r--src/volume-control-pulse.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala
index 8122f26..45cf8a6 100644
--- a/src/volume-control-pulse.vala
+++ b/src/volume-control-pulse.vala
@@ -738,6 +738,10 @@ public class VolumeControlPulse : VolumeControl
get { return this._high_volume; }
private set { this._high_volume = value; }
}
+ public override bool below_warning_volume {
+ get { return this._volume.volume < this._warning_volume_norms; }
+ private set { }
+ }
private void init_high_volume() {
_settings.changed["warning-volume-enabled"].connect(() => update_high_volume_cache());
_settings.changed["warning-volume-decibels"].connect(() => update_high_volume_cache());