summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-11-13 08:41:50 +0100
committerMilan Crha <mcrha@redhat.com>2012-11-13 08:42:40 +0100
commitc5c856b6dadbcfffe61ae197699577cf8d699ebc (patch)
treedb934d242ebf1635b7d8f78c81ea04456951b609
parentb842462e3f87bce5ba0ccadb30b5cefb9c7aaa41 (diff)
downloadevolution-data-server-c5c856b6dadbcfffe61ae197699577cf8d699ebc.tar.gz
Bug #687865 - Shows old reminders for GOA accounts
-rw-r--r--modules/google-backend/module-google-backend.c12
-rw-r--r--modules/yahoo-backend/module-yahoo-backend.c12
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 b11dc80ef..dd99c4cf6 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 a90a51f17..b1bced9bd 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);