Do not keep Google progress notifications in book view forever
authorMilan Crha <mcrha@redhat.com>
Wed, 17 Aug 2011 07:07:38 +0000 (09:07 +0200)
committerMilan Crha <mcrha@redhat.com>
Wed, 17 Aug 2011 07:07:38 +0000 (09:07 +0200)
addressbook/backends/google/e-book-backend-google.c

index 1261b17..923ddff 100644 (file)
@@ -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