diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-11-28 17:12:59 +0000 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-12-09 11:10:45 +0000 |
commit | 3eb474fe0dc4925f56d75569df3fc29dfb56cffc (patch) | |
tree | 85e3b203e5912cffd8fd13d591d1712aa69f84d6 /backends/key-file | |
parent | e0e767505e23561aba924bee4d23f832780f07d8 (diff) |
backends: Add [freeze|thaw]_notify() calls to [un]prepare() in backends
Reduce signal duplication. Inspired by the dummy backend.
Diffstat (limited to 'backends/key-file')
-rw-r--r-- | backends/key-file/kf-backend.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/key-file/kf-backend.vala b/backends/key-file/kf-backend.vala index e118ebd0..67722b21 100644 --- a/backends/key-file/kf-backend.vala +++ b/backends/key-file/kf-backend.vala @@ -183,6 +183,7 @@ public class Folks.Backends.Kf.Backend : Folks.Backend try { this._prepare_pending = true; + this.freeze_notify (); File file; unowned string path = Environment.get_variable ( @@ -216,6 +217,7 @@ public class Folks.Backends.Kf.Backend : Folks.Backend } finally { + this.thaw_notify (); this._prepare_pending = false; } @@ -270,6 +272,7 @@ public class Folks.Backends.Kf.Backend : Folks.Backend try { this._prepare_pending = true; + this.freeze_notify (); foreach (var persona_store in this._persona_stores.values) { @@ -287,6 +290,7 @@ public class Folks.Backends.Kf.Backend : Folks.Backend } finally { + this.thaw_notify (); this._prepare_pending = false; } } |