From f936a00643151850a792d086d2c7f59e6fcab123 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 19 Jun 2008 12:47:55 +0000 Subject: Move contact_set_ready_flag() in _set_name() and _set_handle(). svn path=/trunk/; revision=1180 --- libempathy/empathy-contact.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libempathy') diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index bfa9966da..f84dff4a1 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -411,12 +411,12 @@ empathy_contact_set_name (EmpathyContact *contact, priv = GET_PRIV (contact); g_object_ref (contact); - contact_set_ready_flag (contact, EMPATHY_CONTACT_READY_NAME); if (tp_strdiff (name, priv->name)) { g_free (priv->name); priv->name = g_strdup (name); g_object_notify (G_OBJECT (contact), "name"); } + contact_set_ready_flag (contact, EMPATHY_CONTACT_READY_NAME); g_object_unref (contact); } @@ -577,11 +577,11 @@ empathy_contact_set_handle (EmpathyContact *contact, priv = GET_PRIV (contact); g_object_ref (contact); - contact_set_ready_flag (contact, EMPATHY_CONTACT_READY_HANDLE); if (handle != priv->handle) { priv->handle = handle; g_object_notify (G_OBJECT (contact), "handle"); } + contact_set_ready_flag (contact, EMPATHY_CONTACT_READY_HANDLE); g_object_unref (contact); } -- cgit v1.2.3