[folks/648811-dummy-backend-rebase1] individual: Add default values for PresenceDetails properties
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks/648811-dummy-backend-rebase1] individual: Add default values for PresenceDetails properties
- Date: Tue, 26 Nov 2013 18:16:12 +0000 (UTC)
commit bcb7b2c0632aa42c79d30061142a797e8aff1f47
Author: Philip Withnall <philip withnall collabora co uk>
Date: Thu Nov 21 20:08:07 2013 +0000
individual: Add default values for PresenceDetails properties
If an Individual is created with no Personas (as in the
standalone-individuals test cases), the PresenceDetails properties
should be initialised to empty strings. They were previously defaulting
to null.
folks/individual.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/folks/individual.vala b/folks/individual.vala
index 06cae99..c8b6277 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -231,12 +231,12 @@ public class Folks.Individual : Object,
*
* @since 0.6.0
*/
- public string presence_status { get; set; }
+ public string presence_status { get; set; default = ""; }
/**
* { inheritDoc}
*/
- public string presence_message { get; set; }
+ public string presence_message { get; set; default = ""; }
/**
* { inheritDoc}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]