aboutsummaryrefslogtreecommitdiff
path: root/src/accounts-service-user.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-10-02 10:00:02 -0500
committerTed Gould <ted@gould.cx>2014-10-02 10:00:02 -0500
commit1feb02e715bcb4f201e85c012acfe6196c657930 (patch)
tree3cb84c1fbca541ff14cbc5b956e66531705979c8 /src/accounts-service-user.vala
parentef4ba155bcb9361e4a856ea35566bbaab8ecf6f1 (diff)
downloadayatana-indicator-sound-1feb02e715bcb4f201e85c012acfe6196c657930.tar.gz
ayatana-indicator-sound-1feb02e715bcb4f201e85c012acfe6196c657930.tar.bz2
ayatana-indicator-sound-1feb02e715bcb4f201e85c012acfe6196c657930.zip
Backup the properties with a local value and set the proxy
Diffstat (limited to 'src/accounts-service-user.vala')
-rw-r--r--src/accounts-service-user.vala15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/accounts-service-user.vala b/src/accounts-service-user.vala
index 08d5221..ec52730 100644
--- a/src/accounts-service-user.vala
+++ b/src/accounts-service-user.vala
@@ -28,7 +28,17 @@ public class AccountsServiceUser : Object {
GreeterBroadcast? greeter = null;
public bool showDataOnGreeter { get; set; }
- public bool silentMode { get; set; }
+
+ bool _silentMode = false;
+ public bool silentMode {
+ get {
+ return _silentMode;
+ }
+ set {
+ if (syssoundproxy != null)
+ syssoundproxy.silent_mode = value;
+ }
+ }
public MediaPlayer? player {
set {
@@ -196,7 +206,8 @@ public class AccountsServiceUser : Object {
var silentvar = changed.lookup_value("SilentMode", new VariantType("b"));
if (silentvar != null) {
debug("Silent Mode changed");
- this.silentMode = silentvar.get_boolean();
+ this._silentMode = silentvar.get_boolean();
+ this.notify_property("silentMode");
}
});