[evolution-data-server/meego-eds] It seems we were indeed sending all the initial notifications in a bundle at 'complete' time, this p



commit 5e4dce7b256326b3d555a4ca90e4b3b78bfdcc63
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Tue Jun 28 10:10:15 2011 -0700

    It seems we were indeed sending all the initial notifications in a bundle
    at 'complete' time, this patch adjusts the code to not accumulate the
    notifications but to only mark the contacts as valid in the id table.

 addressbook/libedata-book/e-data-book-view.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/addressbook/libedata-book/e-data-book-view.c b/addressbook/libedata-book/e-data-book-view.c
index b011f0c..a6df927 100644
--- a/addressbook/libedata-book/e-data-book-view.c
+++ b/addressbook/libedata-book/e-data-book-view.c
@@ -238,13 +238,14 @@ notify_add (EDataBookView *view, const gchar *id, gchar *vcard)
 		if (priv->adds->len == THRESHOLD_ITEMS) {
 			send_pending_adds (view);
 		}
+
+		g_array_append_val (priv->adds, vcard);
+
+		ensure_pending_flush_timeout (view);
 	}
 
-	g_array_append_val (priv->adds, vcard);
 	g_hash_table_insert (priv->ids, g_strdup (id),
 			     GUINT_TO_POINTER (1));
-
-	ensure_pending_flush_timeout (view);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]