diff options
-rw-r--r-- | 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 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); |