[evolution-data-server] Bug #687865 - Shows old reminders for GOA accounts
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #687865 - Shows old reminders for GOA accounts
- Date: Tue, 13 Nov 2012 07:41:41 +0000 (UTC)
commit 0ab063796ca9c8dba966fc96d0e4d3cad295495c
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 13 08:37:40 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]