aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-page.c
diff options
context:
space:
mode:
authorJim Ramsay <i.am@jimramsay.com>2010-05-19 04:39:47 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-05-19 05:26:38 +0800
commit9b9899d5c249c6b01deb97e8b2099943a3f1b37d (patch)
tree6dc6bfda6c415816995aeb1c6294e69c0602371e /calendar/gui/dialogs/task-page.c
parentef7690c3845e3c1cebcf3caba7f7667a10e7123d (diff)
downloadgsoc2013-evolution-9b9899d5c249c6b01deb97e8b2099943a3f1b37d.tar
gsoc2013-evolution-9b9899d5c249c6b01deb97e8b2099943a3f1b37d.tar.gz
gsoc2013-evolution-9b9899d5c249c6b01deb97e8b2099943a3f1b37d.tar.bz2
gsoc2013-evolution-9b9899d5c249c6b01deb97e8b2099943a3f1b37d.tar.lz
gsoc2013-evolution-9b9899d5c249c6b01deb97e8b2099943a3f1b37d.tar.xz
gsoc2013-evolution-9b9899d5c249c6b01deb97e8b2099943a3f1b37d.tar.zst
gsoc2013-evolution-9b9899d5c249c6b01deb97e8b2099943a3f1b37d.zip
Bug 594153 (1/3) - Allow setting alarms on any meeting
This introduces a new action_group called "editable" in the comp-editor that can be used by other components to assign actions that should be sensitized separately from the existing "individual" group, such as the "Alarms" and "Show Time as Busy" event actions. This fixes a bug introduced in 0597b877c5bf4d21ac4048742ddf6b11e24877ba where these two actions were accidentally grouped with other actions that should legitimately be in the "individual" group.
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r--calendar/gui/dialogs/task-page.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 8ac3860fac..9747501eea 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -365,6 +365,9 @@ sensitize_widgets (TaskPage *tpage)
gtk_widget_set_sensitive (priv->invite, (!read_only && sens));
gtk_widget_set_sensitive (GTK_WIDGET (priv->list_view), !read_only);
+ action_group = comp_editor_get_action_group (editor, "editable");
+ gtk_action_group_set_sensitive (action_group, !read_only);
+
action_group = comp_editor_get_action_group (editor, "individual");
gtk_action_group_set_sensitive (action_group, sensitize);