[empathy] CONSTRUCT_ONLY properties must be writable
- From: Xavier Claessens <xclaesse src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] CONSTRUCT_ONLY properties must be writable
- Date: Wed, 22 Apr 2009 06:25:55 -0400 (EDT)
commit 3e94eddc9304ffcc49b910c646bbff437fc5829d
Author: Xavier Claessens <xclaesse gmail com>
Date: Tue Feb 17 15:47:27 2009 +0100
CONSTRUCT_ONLY properties must be writable
---
libempathy/empathy-contact.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 46d80d3..09da70f 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -147,15 +147,15 @@ empathy_contact_class_init (EmpathyContactClass *class)
"TpContact",
"The TpContact associated with the contact",
TP_TYPE_CONTACT,
- G_PARAM_CONSTRUCT_ONLY | G_PARAM_READABLE));
+ G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
g_object_class_install_property (object_class,
- PROP_TP_CONTACT,
+ PROP_ACCOUNT,
g_param_spec_object ("account",
"The account",
"The account associated with the contact",
MC_TYPE_ACCOUNT,
- G_PARAM_CONSTRUCT_ONLY | G_PARAM_READABLE));
+ G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_ID,
@@ -379,6 +379,8 @@ contact_set_property (GObject *object,
EmpathyContact *
empathy_contact_new (TpContact *tp_contact)
{
+ g_return_val_if_fail (TP_IS_CONTACT (tp_contact), NULL);
+
return g_object_new (EMPATHY_TYPE_CONTACT,
"tp-contact", tp_contact,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]