diff options
author | Travis Reitter <travis.reitter@collabora.co.uk> | 2011-02-03 11:38:05 -0800 |
---|---|---|
committer | Travis Reitter <travis.reitter@collabora.co.uk> | 2011-02-03 11:41:53 -0800 |
commit | be8f7259ddd1dcd558b28ffc0761358e8d49bd48 (patch) | |
tree | 3eae1c8e830e3d7a4fe3260bf98a19d18a6b05fa | |
parent | ce10f248e9eb093820d4f976caf531aa32b78704 (diff) |
For Vala 0.12, don't use deprecated string.to_int().
-rw-r--r-- | backends/key-file/kf-persona-store.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/key-file/kf-persona-store.vala b/backends/key-file/kf-persona-store.vala index 4a3d1a4..8b169f9 100644 --- a/backends/key-file/kf-persona-store.vala +++ b/backends/key-file/kf-persona-store.vala @@ -228,7 +228,11 @@ public class Folks.Backends.Kf.PersonaStore : Folks.PersonaStore var groups = this._key_file.get_groups (); foreach (var persona_id in groups) { +#if VALA_0_12 + if (int.parse (persona_id) == this._first_unused_id) +#else if (persona_id.to_int () == this._first_unused_id) +#endif this._first_unused_id++; Persona persona = new Kf.Persona (this._key_file, persona_id, |