diff options
author | Ted Gould <ted@gould.cx> | 2014-09-26 14:25:25 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-09-26 14:25:25 -0500 |
commit | bbc0cff3994b65371d2224c6322f04c2fac01556 (patch) | |
tree | 5148773ed2bd1feb804c84c2b1dc62f3f86ce6bb /src/service.vala | |
parent | 7a446003a31252ed8211f593a413d7c206e2b0fd (diff) | |
download | ayatana-indicator-sound-bbc0cff3994b65371d2224c6322f04c2fac01556.tar.gz ayatana-indicator-sound-bbc0cff3994b65371d2224c6322f04c2fac01556.tar.bz2 ayatana-indicator-sound-bbc0cff3994b65371d2224c6322f04c2fac01556.zip |
Connect to the value in accounts service and update the player if appropriate
Diffstat (limited to 'src/service.vala')
-rw-r--r-- | src/service.vala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/service.vala b/src/service.vala index 059724a..8287b7f 100644 --- a/src/service.vala +++ b/src/service.vala @@ -50,7 +50,13 @@ public class IndicatorSound.Service: Object { /* If we're on the greeter, don't export */ if (GLib.Environment.get_user_name() != "lightdm") { this.accounts_service = new AccountsServiceUser(); - /* TODO: Watch for setting */ + + this.accounts_service.notify["showDataOnGreeter"].connect(() => { + this.export_to_accounts_service = this.accounts_service.showDataOnGreeter; + eventually_update_player_actions(); + }); + + this.export_to_accounts_service = this.accounts_service.showDataOnGreeter; } this.sync_preferred_players (); |