+2007-06-09 Xavier Claessens <xclaesse@gmail.com>
+
+ * libempathy/gossip-contact.c: Emit notify signal only if the property
+ value effectively changed.
+
2007-06-09 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/gossip-contact-list-view.c: Fix warning for DnD.
priv = GET_PRIV (contact);
+ if (priv->id && strcmp (id, priv->id) == 0) {
+ return;
+ }
+
g_free (priv->id);
priv->id = g_strdup (id);
priv = GET_PRIV (contact);
+ if (priv->name && strcmp (name, priv->name) == 0) {
+ return;
+ }
+
g_free (priv->name);
priv->name = g_strdup (name);
priv = GET_PRIV (contact);
+ if (priv->avatar == avatar) {
+ return;
+ }
+
if (priv->avatar) {
gossip_avatar_unref (priv->avatar);
priv->avatar = NULL;
priv = GET_PRIV (contact);
+ if (account == priv->account) {
+ return;
+ }
+
if (priv->account) {
g_object_unref (priv->account);
}
priv = GET_PRIV (contact);
+ if (presence == priv->presence) {
+ return;
+ }
+
if (priv->presence) {
g_object_unref (priv->presence);
priv->presence = NULL;
priv = GET_PRIV (contact);
+ if (priv->subscription == subscription) {
+ return;
+ }
+
priv->subscription = subscription;
g_object_notify (G_OBJECT (contact), "subscription");
priv = GET_PRIV (contact);
+ if (priv->handle == handle) {
+ return;
+ }
+
priv->handle = handle;
g_object_notify (G_OBJECT (contact), "handle");