aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-09-26 14:25:25 -0500
committerTed Gould <ted@gould.cx>2014-09-26 14:25:25 -0500
commitbbc0cff3994b65371d2224c6322f04c2fac01556 (patch)
tree5148773ed2bd1feb804c84c2b1dc62f3f86ce6bb
parent7a446003a31252ed8211f593a413d7c206e2b0fd (diff)
downloadayatana-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
-rw-r--r--src/service.vala8
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 ();