[evolution] Use newly introduced CAL_STATIC_CAPABILITY_ALL_DAY_EVENT_AS_TIME
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Use newly introduced CAL_STATIC_CAPABILITY_ALL_DAY_EVENT_AS_TIME
- Date: Wed, 12 Aug 2015 07:02:51 +0000 (UTC)
commit 5a71cf5da9e918462614755038052e67caf50825
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 12 09:01:32 2015 +0200
Use newly introduced CAL_STATIC_CAPABILITY_ALL_DAY_EVENT_AS_TIME
calendar/gui/dialogs/event-page.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 3d30d53..b5378bb 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -1518,6 +1518,24 @@ event_page_fill_component (CompEditorPage *page,
/* We have to add 1 day to DTEND, as it is not inclusive. */
icaltime_adjust (&end_tt, 1, 0, 0, 0);
+
+ if (e_client_check_capability (E_CLIENT (client),
CAL_STATIC_CAPABILITY_ALL_DAY_EVENT_AS_TIME)) {
+ icaltimezone *start_zone;
+
+ start_tt.is_date = FALSE;
+ start_tt.hour = 0;
+ start_tt.minute = 0;
+ start_tt.second = 0;
+
+ end_tt.is_date = FALSE;
+ end_tt.hour = 0;
+ end_tt.minute = 0;
+ end_tt.second = 0;
+
+ start_zone = e_timezone_entry_get_timezone (E_TIMEZONE_ENTRY (priv->start_timezone));
+ start_date.tzid = icaltimezone_get_tzid (start_zone);
+ end_date.tzid = icaltimezone_get_tzid (start_zone);
+ }
} else {
icaltimezone *start_zone;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]