[folks] individual: Add default values for PresenceDetails properties
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] individual: Add default values for PresenceDetails properties
- Date: Thu, 28 Nov 2013 10:11:06 +0000 (UTC)
commit 1cff44abae96df74cb98093355ea0bddec0f1197
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.
https://bugzilla.gnome.org/show_bug.cgi?id=648811
folks/individual.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/folks/individual.vala b/folks/individual.vala
index 87e8f7a..67bdb10 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]