aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control-pulse.vala
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2015-12-19 22:14:31 -0600
committercharles kerr <charlesk@canonical.com>2015-12-19 22:14:31 -0600
commitf008f077e6978c99ba9548eda26ac29c073a46a8 (patch)
treeaff23ac2f067fb17d30ca004500b1c4f18dfcc6a /src/volume-control-pulse.vala
parentcdc14fd12e145a775f7f103125f4624947ac4d95 (diff)
downloadayatana-indicator-sound-f008f077e6978c99ba9548eda26ac29c073a46a8.tar.gz
ayatana-indicator-sound-f008f077e6978c99ba9548eda26ac29c073a46a8.tar.bz2
ayatana-indicator-sound-f008f077e6978c99ba9548eda26ac29c073a46a8.zip
remove 'is-playing' property from volume-warning
Diffstat (limited to 'src/volume-control-pulse.vala')
-rw-r--r--src/volume-control-pulse.vala16
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