[evolution-data-server/openismus-work-master: 2/11] Fixed addressbook code run properly without the E_BOOK_CLIENT_VIEW_NOTIFY_INITIAL flag set.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work-master: 2/11] Fixed addressbook code run properly without the E_BOOK_CLIENT_VIEW_NOTIFY_INITIAL flag set.
- Date: Tue, 26 Jul 2011 23:44:01 +0000 (UTC)
commit 3dd325aad385ea9b8614f6298bf88a765c907575
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Fri Jun 24 21:48:27 2011 -0400
Fixed addressbook code run properly without the E_BOOK_CLIENT_VIEW_NOTIFY_INITIAL flag set.
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 | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/addressbook/libedata-book/e-data-book-view.c b/addressbook/libedata-book/e-data-book-view.c
index 0db38f3..f38ad42 100644
--- a/addressbook/libedata-book/e-data-book-view.c
+++ b/addressbook/libedata-book/e-data-book-view.c
@@ -281,14 +281,15 @@ notify_add (EDataBookView *view, const gchar *id, const gchar *vcard)
if (priv->adds->len == THRESHOLD_ITEMS) {
send_pending_adds (view);
}
+
+ utf8_vcard = e_util_utf8_make_valid (vcard);
+ g_array_append_val (priv->adds, utf8_vcard);
+
+ ensure_pending_flush_timeout (view);
}
- utf8_vcard = e_util_utf8_make_valid (vcard);
- g_array_append_val (priv->adds, utf8_vcard);
g_hash_table_insert (priv->ids, e_util_utf8_make_valid (id),
GUINT_TO_POINTER (1));
-
- ensure_pending_flush_timeout (view);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]