[evolution-data-server] evo-I#37 - Color support for iCalendar entries
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] evo-I#37 - Color support for iCalendar entries
- Date: Tue, 26 Jun 2018 11:57:44 +0000 (UTC)
commit 28297f5d3cdf6c8813114c220552d3c65289e957
Author: Milan Crha <mcrha redhat com>
Date: Tue Jun 26 13:59:28 2018 +0200
evo-I#37 - Color support for iCalendar entries
Related to https://gitlab.gnome.org/GNOME/evolution/issues/37
src/calendar/backends/caldav/e-cal-backend-caldav.c | 3 ++-
src/calendar/backends/file/e-cal-backend-file.c | 1 +
src/calendar/libecal/e-cal-util.h | 10 ++++++++++
3 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/src/calendar/backends/caldav/e-cal-backend-caldav.c
b/src/calendar/backends/caldav/e-cal-backend-caldav.c
index 613ba8ec3..89552fb53 100644
--- a/src/calendar/backends/caldav/e-cal-backend-caldav.c
+++ b/src/calendar/backends/caldav/e-cal-backend-caldav.c
@@ -2030,7 +2030,8 @@ ecb_caldav_get_backend_property (ECalBackend *backend,
caps = g_string_new (
CAL_STATIC_CAPABILITY_NO_THISANDPRIOR ","
CAL_STATIC_CAPABILITY_REFRESH_SUPPORTED ","
- CAL_STATIC_CAPABILITY_TASK_CAN_RECUR);
+ CAL_STATIC_CAPABILITY_TASK_CAN_RECUR ","
+ CAL_STATIC_CAPABILITY_COMPONENT_COLOR);
g_string_append (caps, ",");
g_string_append (caps, e_cal_meta_backend_get_capabilities (E_CAL_META_BACKEND (backend)));
diff --git a/src/calendar/backends/file/e-cal-backend-file.c b/src/calendar/backends/file/e-cal-backend-file.c
index 812e10216..4ac2dd1fe 100644
--- a/src/calendar/backends/file/e-cal-backend-file.c
+++ b/src/calendar/backends/file/e-cal-backend-file.c
@@ -483,6 +483,7 @@ e_cal_backend_file_get_backend_property (ECalBackend *backend,
CAL_STATIC_CAPABILITY_BULK_REMOVES,
CAL_STATIC_CAPABILITY_ALARM_DESCRIPTION,
CAL_STATIC_CAPABILITY_TASK_CAN_RECUR,
+ CAL_STATIC_CAPABILITY_COMPONENT_COLOR,
NULL);
} else if (g_str_equal (prop_name, CAL_BACKEND_PROPERTY_CAL_EMAIL_ADDRESS) ||
diff --git a/src/calendar/libecal/e-cal-util.h b/src/calendar/libecal/e-cal-util.h
index e96661433..0bbbd1259 100644
--- a/src/calendar/libecal/e-cal-util.h
+++ b/src/calendar/libecal/e-cal-util.h
@@ -247,6 +247,16 @@ gboolean e_cal_util_event_dates_match (icalcomponent *icalcomp1,
**/
#define CAL_STATIC_CAPABILITY_TASK_NO_ALARM "task-no-alarm"
+/**
+ * CAL_STATIC_CAPABILITY_COMPONENT_COLOR:
+ *
+ * When the capability is set, the client supports storing color
+ * for individual components.
+ *
+ * Since: 3.30
+ **/
+#define CAL_STATIC_CAPABILITY_COMPONENT_COLOR "component-color"
+
/* Recurrent events. Management for instances */
icalcomponent * e_cal_util_construct_instance (icalcomponent *icalcomp,
struct icaltimetype rid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]