[evolution] I#1749 - ECalComponentPreview: Show component (non-public) classification
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] I#1749 - ECalComponentPreview: Show component (non-public) classification
- Date: Mon, 3 Jan 2022 17:57:29 +0000 (UTC)
commit b5eef5cff5319686fbf9663e098b20caf853186e
Author: Milan Crha <mcrha redhat com>
Date: Mon Jan 3 18:55:55 2022 +0100
I#1749 - ECalComponentPreview: Show component (non-public) classification
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1749
src/calendar/gui/e-cal-component-preview.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
---
diff --git a/src/calendar/gui/e-cal-component-preview.c b/src/calendar/gui/e-cal-component-preview.c
index c50371e33a..e2f841b876 100644
--- a/src/calendar/gui/e-cal-component-preview.c
+++ b/src/calendar/gui/e-cal-component-preview.c
@@ -376,6 +376,26 @@ cal_component_preview_write_html (ECalComponentPreview *preview,
cal_component_preview_add_table_line (buffer, _("Priority:"), tmp);
}
+ prop = i_cal_component_get_first_property (icomp, I_CAL_CLASS_PROPERTY);
+ if (prop) {
+ switch (i_cal_property_get_class (prop)) {
+ case I_CAL_CLASS_PRIVATE:
+ tmp = _("Private");
+ break;
+ case I_CAL_CLASS_CONFIDENTIAL:
+ tmp = _("Confidential");
+ break;
+ default:
+ tmp = NULL;
+ break;
+ }
+
+ if (tmp)
+ cal_component_preview_add_table_line (buffer, _("Classification:"), tmp);
+
+ g_object_unref (prop);
+ }
+
if (e_cal_component_has_organizer (comp)) {
ECalComponentOrganizer *organizer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]