[evolution-patches] Patch to EBookBackendCache
- From: Jörgen Scheibengruber <Joergen Scheibengruber wh-hms uni-ulm de>
- To: evolution-patches gnome org
- Subject: [evolution-patches] Patch to EBookBackendCache
- Date: Wed, 13 Aug 2008 23:12:10 +0300
Hi,
here comes a patch for e-book-backend-cache.c. The method
e_book_backend_cache_set_time () currently allows you to set the
time exactly once, and will return failure later on. I don't
think this is intended behaviour --- at least it is not what
I would need in the google contacts backend. So this patch will
overwrite the old time-stamp when a new one is set instead.
PS: I'm not suscribed to the list ;-)
Br,
Jörgen
Index: libedata-book/e-book-backend-cache.c
===================================================================
--- libedata-book/e-book-backend-cache.c (Revision 9341)
+++ libedata-book/e-book-backend-cache.c (Arbeitskopie)
@@ -499,7 +499,10 @@
e_book_backend_cache_set_time (EBookBackendCache *cache, const char *t)
{
g_return_if_fail (E_IS_BOOK_BACKEND_CACHE (cache));
- e_file_cache_add_object (E_FILE_CACHE (cache), "last_update_time", t);
+ if (e_file_cache_get_object (E_FILE_CACHE (cache), "last_update_time"))
+ e_file_cache_replace_object (E_FILE_CACHE (cache), "last_update_time", t);
+ else
+ e_file_cache_add_object (E_FILE_CACHE (cache), "last_update_time", t);
}
char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]