[evolution-data-server] Do not keep Google progress notifications in book view forever



commit 3737c0c3fd76c7aa517caabe0086db3d2b9421f8
Author: Milan Crha <mcrha redhat com>
Date:   Wed Aug 17 09:07:38 2011 +0200

    Do not keep Google progress notifications in book view forever

 .../backends/google/e-book-backend-google.c        |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/backends/google/e-book-backend-google.c b/addressbook/backends/google/e-book-backend-google.c
index 1261b17..923ddff 100644
--- a/addressbook/backends/google/e-book-backend-google.c
+++ b/addressbook/backends/google/e-book-backend-google.c
@@ -522,7 +522,14 @@ static void
 finish_operation (EBookBackend *backend, guint32 opid)
 {
 	EBookBackendGooglePrivate *priv = E_BOOK_BACKEND_GOOGLE (backend)->priv;
-	g_hash_table_remove (priv->cancellables, GUINT_TO_POINTER (opid));
+
+	if (g_hash_table_remove (priv->cancellables, GUINT_TO_POINTER (opid))) {
+		GList *iter;
+
+		/* Send out a status message to each view */
+		for (iter = priv->bookviews; iter; iter = iter->next)
+			e_data_book_view_notify_complete (E_DATA_BOOK_VIEW (iter->data), NULL);
+	}
 }
 
 static void



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