[evolution-data-server/gnome-3-6] Bug #687865 - Shows old reminders for GOA accounts



commit c5c856b6dadbcfffe61ae197699577cf8d699ebc
Author: Milan Crha <mcrha redhat com>
Date:   Tue Nov 13 08:41:50 2012 +0100

    Bug #687865 - Shows old reminders for GOA accounts

 modules/google-backend/module-google-backend.c |   12 ++++++++++++
 modules/yahoo-backend/module-yahoo-backend.c   |   12 ++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/modules/google-backend/module-google-backend.c b/modules/google-backend/module-google-backend.c
index b11dc80..dd99c4c 100644
--- a/modules/google-backend/module-google-backend.c
+++ b/modules/google-backend/module-google-backend.c
@@ -148,6 +148,18 @@ google_backend_add_calendar (ECollectionBackend *backend)
 	e_source_security_set_secure (
 		E_SOURCE_SECURITY (extension), TRUE);
 
+	extension_name = E_SOURCE_EXTENSION_ALARMS;
+	extension = e_source_get_extension (source, extension_name);
+	if (!e_source_alarms_get_last_notified (E_SOURCE_ALARMS (extension))) {
+		GTimeVal today_tv;
+		gchar *today;
+
+		g_get_current_time (&today_tv);
+		today = g_time_val_to_iso8601 (&today_tv);
+		e_source_alarms_set_last_notified (E_SOURCE_ALARMS (extension), today);
+		g_free (today);
+	}
+
 	extension_name = E_SOURCE_EXTENSION_WEBDAV_BACKEND;
 	extension = e_source_get_extension (source, extension_name);
 
diff --git a/modules/yahoo-backend/module-yahoo-backend.c b/modules/yahoo-backend/module-yahoo-backend.c
index a90a51f..b1bced9 100644
--- a/modules/yahoo-backend/module-yahoo-backend.c
+++ b/modules/yahoo-backend/module-yahoo-backend.c
@@ -203,6 +203,18 @@ yahoo_backend_add_calendar (ECollectionBackend *backend)
 	extension = e_source_get_extension (source, extension_name);
 	e_source_backend_set_backend_name (extension, backend_name);
 
+	extension_name = E_SOURCE_EXTENSION_ALARMS;
+	extension = e_source_get_extension (source, extension_name);
+	if (!e_source_alarms_get_last_notified (E_SOURCE_ALARMS (extension))) {
+		GTimeVal today_tv;
+		gchar *today;
+
+		g_get_current_time (&today_tv);
+		today = g_time_val_to_iso8601 (&today_tv);
+		e_source_alarms_set_last_notified (E_SOURCE_ALARMS (extension), today);
+		g_free (today);
+	}
+
 	yahoo_backend_config_calendar_child (backend, source);
 	e_source_registry_server_add_source (server, source);
 



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