From 0b1658ed7a215dad8295b02a30d5220011e199f1 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 30 Nov 2009 12:31:31 +0530 Subject: Bug 494394 - No way for the user to refresh a calendar --- modules/calendar/e-cal-shell-view.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/calendar/e-cal-shell-view.c') diff --git a/modules/calendar/e-cal-shell-view.c b/modules/calendar/e-cal-shell-view.c index 396cdec62e..47d734921c 100644 --- a/modules/calendar/e-cal-shell-view.c +++ b/modules/calendar/e-cal-shell-view.c @@ -291,6 +291,7 @@ cal_shell_view_update_actions (EShellView *shell_view) gboolean is_meeting = FALSE; gboolean is_delegatable = FALSE; gboolean clipboard_has_calendar; + gboolean refresh_supported = FALSE; priv = E_CAL_SHELL_VIEW_GET_PRIVATE (shell_view); @@ -367,6 +368,8 @@ cal_shell_view_update_actions (EShellView *shell_view) (state & E_CAL_SHELL_SIDEBAR_CAN_DELETE_PRIMARY_SOURCE); primary_source_is_system = (state & E_CAL_SHELL_SIDEBAR_PRIMARY_SOURCE_IS_SYSTEM); + refresh_supported = + (state & E_CAL_SHELL_SIDEBAR_SOURCE_SUPPORTS_REFRESH); action = ACTION (CALENDAR_COPY); sensitive = has_primary_source; @@ -380,6 +383,10 @@ cal_shell_view_update_actions (EShellView *shell_view) sensitive = has_primary_source; gtk_action_set_sensitive (action, sensitive); + action = ACTION (CALENDAR_REFRESH); + sensitive = refresh_supported; + gtk_action_set_sensitive (action, sensitive); + action = ACTION (CALENDAR_RENAME); sensitive = can_delete_primary_source; gtk_action_set_sensitive (action, sensitive); -- cgit v1.2.3