aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-10-02 16:18:21 -0500
committerTed Gould <ted@gould.cx>2014-10-02 16:18:21 -0500
commitaf38d9e73aeca412a11b6b8e59039042375ed335 (patch)
tree0c6808fc361065632a3c69d9abd12580ab7a83a0
parent095353472e881855bff8f5d16ea9c13fe978a623 (diff)
downloadayatana-indicator-sound-af38d9e73aeca412a11b6b8e59039042375ed335.tar.gz
ayatana-indicator-sound-af38d9e73aeca412a11b6b8e59039042375ed335.tar.bz2
ayatana-indicator-sound-af38d9e73aeca412a11b6b8e59039042375ed335.zip
Build the volume control first
-rw-r--r--src/service.vala4
1 files 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);