aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-task-shell-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/calendar/e-task-shell-view.c')
-rw-r--r--modules/calendar/e-task-shell-view.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/calendar/e-task-shell-view.c b/modules/calendar/e-task-shell-view.c
index 8518a6dcb1..9558eb77c0 100644
--- a/modules/calendar/e-task-shell-view.c
+++ b/modules/calendar/e-task-shell-view.c
@@ -291,6 +291,7 @@ task_shell_view_update_actions (EShellView *shell_view)
gboolean some_tasks_incomplete;
gboolean sources_are_editable;
gboolean clipboard_has_calendar;
+ gboolean refresh_supported;
priv = E_TASK_SHELL_VIEW_GET_PRIVATE (shell_view);
@@ -325,6 +326,8 @@ task_shell_view_update_actions (EShellView *shell_view)
(state & E_TASK_SHELL_SIDEBAR_CAN_DELETE_PRIMARY_SOURCE);
primary_source_is_system =
(state & E_TASK_SHELL_SIDEBAR_PRIMARY_SOURCE_IS_SYSTEM);
+ refresh_supported =
+ (state & E_TASK_SHELL_SIDEBAR_SOURCE_SUPPORTS_REFRESH);
any_tasks_selected =
(single_task_selected || multiple_tasks_selected);
@@ -372,6 +375,10 @@ task_shell_view_update_actions (EShellView *shell_view)
sensitive = has_primary_source;
gtk_action_set_sensitive (action, sensitive);
+ action = ACTION (TASK_LIST_REFRESH);
+ sensitive = refresh_supported;
+ gtk_action_set_sensitive (action, sensitive);
+
action = ACTION (TASK_LIST_RENAME);
sensitive = can_delete_primary_source;
gtk_action_set_sensitive (action, sensitive);