diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-02-01 19:11:49 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-02-01 19:11:49 +0100 |
commit | 6d67f7b458911833e72e0b4a162b1d823609d6f8 (patch) | |
tree | bb39fcf3f5051bec3e78d92974403571778e351a /src | |
parent | 0692cc58d1046b79671491866294692a48b05554 (diff) | |
parent | d77ad890a0bb3b8e366c6dea23ca93f71e35d5d5 (diff) | |
download | ayatana-indicator-datetime-6d67f7b458911833e72e0b4a162b1d823609d6f8.tar.gz ayatana-indicator-datetime-6d67f7b458911833e72e0b4a162b1d823609d6f8.tar.bz2 ayatana-indicator-datetime-6d67f7b458911833e72e0b4a162b1d823609d6f8.zip |
Merge branch 'tari01-pr/fix-colour-tests'
Attributes GH PR #124: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/124
Diffstat (limited to 'src')
-rw-r--r-- | src/engine-eds.cpp | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp index 2748fc1..7a61fc0 100644 --- a/src/engine-eds.cpp +++ b/src/engine-eds.cpp @@ -1,6 +1,6 @@ /* * Copyright 2014 Canonical Ltd. - * Copyright 2021 Robert Tari + * Copyright 2021-2024 Robert Tari * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -1074,6 +1074,34 @@ private: } g_slist_free_full(categ_list, g_free); + // Get the colour - we might need this override in the future + + /*if (icc) + { + ECalComponentPropertyBag *pBag = e_cal_component_property_bag_new_from_component (icc, NULL, NULL); + + if (pBag) + { + guint nProperties = e_cal_component_property_bag_get_count (pBag); + + for (guint nProperty = 0; nProperty < nProperties; nProperty++) + { + ICalProperty *pProperty = e_cal_component_property_bag_get (pBag, nProperty); + gchar *sName = i_cal_property_get_property_name (pProperty); + gboolean bColour = !g_strcmp0 (sName, "COLOR"); + + if (bColour) + { + baseline.color = i_cal_property_get_value_as_string (pProperty); + + break; + } + } + + e_cal_component_property_bag_free (pBag); + } + }*/ + g_debug("%s got appointment from %s to %s: %s", G_STRLOC, baseline.begin.format("%F %T %z").c_str(), baseline.end.format("%F %T %z").c_str(), |