aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-12 16:49:31 -0600
committerTed Gould <ted@gould.cx>2014-02-12 16:49:31 -0600
commit537e5b2988815287e6bb3da35189e5c65c5ac4b2 (patch)
tree14d4b7ef67abcc31fbb69d5e8bc3e3afb1b70749 /src/service.vala
parent2d9d89bb932174f6b54e6ba6586deafe511a685b (diff)
downloadayatana-indicator-sound-537e5b2988815287e6bb3da35189e5c65c5ac4b2.tar.gz
ayatana-indicator-sound-537e5b2988815287e6bb3da35189e5c65c5ac4b2.tar.bz2
ayatana-indicator-sound-537e5b2988815287e6bb3da35189e5c65c5ac4b2.zip
Move the player list outside of the service creation
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service.vala b/src/service.vala
index 25f3011..7b88e1b 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -18,12 +18,12 @@
*/
public class IndicatorSound.Service {
- public Service () {
+ public Service (MediaPlayerList playerlist) {
this.settings = new Settings ("com.canonical.indicator.sound");
this.volume_control = new VolumeControl ();
- this.players = new MediaPlayerList ();
+ this.players = playerlist;
this.players.player_added.connect (this.player_added);
this.players.player_removed.connect (this.player_removed);