From f968742063aedff5b0e3814d4db3b1259d6cd1e8 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 11 Mar 2008 12:22:17 +0000 Subject: If we set contact's id and name is still empty, emit notify::name. svn path=/trunk/; revision=745 --- libempathy/empathy-contact.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libempathy/empathy-contact.c') diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 2ec295065..13b526041 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -354,6 +354,9 @@ empathy_contact_set_id (EmpathyContact *contact, priv->id = g_strdup (id); g_object_notify (G_OBJECT (contact), "id"); + if (G_STR_EMPTY (priv->name)) { + g_object_notify (G_OBJECT (contact), "name"); + } } const gchar * -- cgit v1.2.3