aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-02-17 22:47:27 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-04-22 18:21:10 +0800
commit3e94eddc9304ffcc49b910c646bbff437fc5829d (patch)
tree570b4531a99e6d874366644c24ad60ded9908d76 /libempathy
parentf6b723292ace881c24243643e0a158cc35c9cc1c (diff)
downloadgsoc2013-empathy-3e94eddc9304ffcc49b910c646bbff437fc5829d.tar
gsoc2013-empathy-3e94eddc9304ffcc49b910c646bbff437fc5829d.tar.gz
gsoc2013-empathy-3e94eddc9304ffcc49b910c646bbff437fc5829d.tar.bz2
gsoc2013-empathy-3e94eddc9304ffcc49b910c646bbff437fc5829d.tar.lz
gsoc2013-empathy-3e94eddc9304ffcc49b910c646bbff437fc5829d.tar.xz
gsoc2013-empathy-3e94eddc9304ffcc49b910c646bbff437fc5829d.tar.zst
gsoc2013-empathy-3e94eddc9304ffcc49b910c646bbff437fc5829d.zip
CONSTRUCT_ONLY properties must be writable
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 46d80d3be..09da70fde 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);