From af38d9e73aeca412a11b6b8e59039042375ed335 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 2 Oct 2014 16:18:21 -0500 Subject: Build the volume control first --- src/service.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service.vala b/src/service.vala index 8711b6a..18f283b 100644 --- a/src/service.vala +++ b/src/service.vala @@ -25,6 +25,8 @@ public class IndicatorSound.Service: Object { this.settings.bind ("visible", this, "visible", SettingsBindFlags.GET); this.notify["visible"].connect ( () => this.update_root_icon () ); + this.volume_control = new VolumeControl (); + /* If we're on the greeter, don't export */ if (GLib.Environment.get_user_name() != "lightdm") { this.accounts_service = new AccountsServiceUser(); @@ -37,8 +39,6 @@ public class IndicatorSound.Service: Object { this.export_to_accounts_service = this.accounts_service.showDataOnGreeter; } - this.volume_control = new VolumeControl (); - this.players = playerlist; this.players.player_added.connect (this.player_added); this.players.player_removed.connect (this.player_removed); -- cgit v1.2.3