diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-28 21:11:10 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-28 21:11:10 -0600 |
commit | 051d78c18a3865536a0270bf150a538679dd45a6 (patch) | |
tree | f253f341b19a59ae67c394067ab15287655d7a65 /src | |
parent | c22c2005b594f2fea179222a9bd55c5d4bcb6227 (diff) | |
download | ayatana-indicator-sound-051d78c18a3865536a0270bf150a538679dd45a6.tar.gz ayatana-indicator-sound-051d78c18a3865536a0270bf150a538679dd45a6.tar.bz2 ayatana-indicator-sound-051d78c18a3865536a0270bf150a538679dd45a6.zip |
remove unneeded tracers
Diffstat (limited to 'src')
-rw-r--r-- | src/volume-warning.vala | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/volume-warning.vala b/src/volume-warning.vala index 5af7972..0f06f07 100644 --- a/src/volume-warning.vala +++ b/src/volume-warning.vala @@ -284,21 +284,13 @@ public class VolumeWarning : Object } private void init_high_volume() { _options.loud_changed.connect(() => update_high_volume()); - this.notify["multimedia-volume"].connect(() => { - GLib.message("recalculating high-volume due to multimedia-volume change"); - this.update_high_volume(); - }); - this.notify["multimedia-active"].connect(() => { - GLib.message("recalculating high-volume due to multimedia-active change"); - this.update_high_volume(); - }); - this.notify["headphones-active"].connect(() => { - GLib.message("recalculating high-volume due to headphones-active change"); - this.update_high_volume(); - }); - notify["high-volume-approved"].connect(() => update_high_volume()); + this.notify["multimedia-volume"].connect(() => update_high_volume()); + this.notify["multimedia-active"].connect(() => update_high_volume()); + this.notify["headphones-active"].connect(() => update_high_volume()); + this.notify["high-volume-approved"].connect(() => update_high_volume()); update_high_volume(); } + private void update_high_volume() { PulseAudio.Volume mm_vol = multimedia_volume; var approved = high_volume_approved; |