]> git.0d.be Git - empathy.git/commitdiff
If we set contact's id and name is still empty, emit notify::name.
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Mar 2008 12:22:17 +0000 (12:22 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Mar 2008 12:22:17 +0000 (12:22 +0000)
svn path=/trunk/; revision=745

libempathy/empathy-contact.c

index 2ec295065676dd5c484513189e6430423d663d70..13b5260417c0467991a29fa8f8c49057916377af 100644 (file)
@@ -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 *