[evolution-ews] Don't hard-code calendar and task list colors.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Don't hard-code calendar and task list colors.
- Date: Fri, 15 Jun 2012 11:44:55 +0000 (UTC)
commit c03c0e38f0970b89ef7068766d1559200d7d9f25
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Jun 15 07:29:34 2012 -0400
Don't hard-code calendar and task list colors.
We allow these to be changed through Evolution.
We do still need logic to pick an initial random color so new calendars
are not all the same color, but that should live in ESourceSelectable in
libedataserver.
src/collection/e-ews-backend.c | 30 ++++--------------------------
1 files changed, 4 insertions(+), 26 deletions(-)
---
diff --git a/src/collection/e-ews-backend.c b/src/collection/e-ews-backend.c
index 0a4e6c4..61f7e4a 100644
--- a/src/collection/e-ews-backend.c
+++ b/src/collection/e-ews-backend.c
@@ -176,38 +176,16 @@ static ESource *
ews_backend_new_calendar (EEwsBackend *backend,
EEwsFolder *folder)
{
- ESourceExtension *extension;
- ESource *source;
- const gchar *extension_name;
-
- source = ews_backend_new_child (backend, folder);
-
- /* XXX The Exchange server does not provide a color? */
- extension_name = E_SOURCE_EXTENSION_CALENDAR;
- extension = e_source_get_extension (source, extension_name);
- e_source_selectable_set_color (
- E_SOURCE_SELECTABLE (extension), "#EEBC60");
-
- return source;
+ /* No extra configuration to do. */
+ return ews_backend_new_child (backend, folder);
}
static ESource *
ews_backend_new_task_list (EEwsBackend *backend,
EEwsFolder *folder)
{
- ESourceExtension *extension;
- ESource *source;
- const gchar *extension_name;
-
- source = ews_backend_new_child (backend, folder);
-
- /* XXX The Exchange server does not provide a color? */
- extension_name = E_SOURCE_EXTENSION_TASK_LIST;
- extension = e_source_get_extension (source, extension_name);
- e_source_selectable_set_color (
- E_SOURCE_SELECTABLE (extension), "#EEBC60");
-
- return source;
+ /* No extra configuration to do. */
+ return ews_backend_new_child (backend, folder);
}
static ESource *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]