aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2015-01-20 22:02:32 +0000
committerCI Train Bot <ci-train-bot@canonical.com>2015-01-20 22:02:32 +0000
commit12715e73912b581db49f93619ad23dc48aef3d93 (patch)
treec9650df45e7775f4b6fcdc775384ce6151b24561
parent2f0aba374502b7ea660fce49f70e3ea972725685 (diff)
parent1a0a355e8c8e30f1e3227f5183faf3780b89a63b (diff)
downloadayatana-indicator-sound-12715e73912b581db49f93619ad23dc48aef3d93.tar.gz
ayatana-indicator-sound-12715e73912b581db49f93619ad23dc48aef3d93.tar.bz2
ayatana-indicator-sound-12715e73912b581db49f93619ad23dc48aef3d93.zip
Set internal silent mode variable at startup Fixes: #1391164
Approved by: Charles Kerr, PS Jenkins bot
-rw-r--r--src/accounts-service-user.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/accounts-service-user.vala b/src/accounts-service-user.vala
index ec52730..e8db7c4 100644
--- a/src/accounts-service-user.vala
+++ b/src/accounts-service-user.vala
@@ -35,6 +35,7 @@ public class AccountsServiceUser : Object {
return _silentMode;
}
set {
+ _silentMode = value;
if (syssoundproxy != null)
syssoundproxy.silent_mode = value;
}
@@ -211,7 +212,8 @@ public class AccountsServiceUser : Object {
}
});
- this.silentMode = this.syssoundproxy.silent_mode;
+ this._silentMode = this.syssoundproxy.silent_mode;
+ this.notify_property("silentMode");
} catch (Error e) {
this.syssoundproxy = null;
warning("Unable to get proxy to system sound settings: %s", e.message);