diff options
Diffstat (limited to 'src/volume-control-pulse.vala')
-rw-r--r-- | src/volume-control-pulse.vala | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala index 251eae5..22c3ee4 100644 --- a/src/volume-control-pulse.vala +++ b/src/volume-control-pulse.vala @@ -41,7 +41,6 @@ public class VolumeControlPulse : VolumeControl private PulseAudio.Context context; private bool _mute = true; - private bool _is_playing = false; private VolumeControl.Volume _volume = new VolumeControl.Volume(); private double _mic_volume = 0.0; @@ -241,11 +240,8 @@ public class VolumeControlPulse : VolumeControl } var playing = (i.state == PulseAudio.SinkState.RUNNING); - if (_is_playing != playing) - { - _is_playing = playing; - this.notify_property ("is-playing"); - } + if (is_playing != playing) + is_playing = playing; // store the current status of the active output VolumeControl.ActiveOutput active_output_before = active_output; @@ -575,14 +571,6 @@ public class VolumeControlPulse : VolumeControl } } - public override bool is_playing - { - get - { - return this._is_playing; - } - } - public override VolumeControl.ActiveOutput active_output { get |