summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2023-04-17 20:20:27 +0200
committerMilan Crha <mcrha@redhat.com>2023-04-17 20:20:27 +0200
commitc0bbfaf51bf2f5244d5af1b4d9da347e20937bfa (patch)
treef24ae3e7cfcb70a9ae7cc5c32135e6534e3133e2
parent8809af76c9f52682f4e2e733adf1336f75682fc8 (diff)
downloadevolution-c0bbfaf51bf2f5244d5af1b4d9da347e20937bfa.tar.gz
I#2324 - ECompEditor: Classification submenu inaccessible for read-only calendars
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2324
-rw-r--r--src/calendar/gui/e-comp-editor-event.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/calendar/gui/e-comp-editor-event.c b/src/calendar/gui/e-comp-editor-event.c
index ab94e4589b..182c53f38a 100644
--- a/src/calendar/gui/e-comp-editor-event.c
+++ b/src/calendar/gui/e-comp-editor-event.c
@@ -199,7 +199,15 @@ ece_event_sensitize_widgets (ECompEditor *comp_editor,
action = e_comp_editor_get_action (comp_editor, "all-day-event");
gtk_action_set_sensitive (action, !force_insensitive);
- action = e_comp_editor_get_action (comp_editor, "classification-menu");
+ /* Disable radio items, instead of the whole submenu,
+ to see the value with read-only events/calendars. */
+ action = e_comp_editor_get_action (comp_editor, "classify-private");
+ gtk_action_set_sensitive (action, !force_insensitive);
+
+ action = e_comp_editor_get_action (comp_editor, "classify-confidential");
+ gtk_action_set_sensitive (action, !force_insensitive);
+
+ action = e_comp_editor_get_action (comp_editor, "classify-public");
gtk_action_set_sensitive (action, !force_insensitive);
if (event_editor->priv->insensitive_info_alert)