aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-memo-shell-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-11-30 15:01:31 +0800
committerChenthill Palanisamy <pchenthill@novell.com>2009-11-30 15:01:31 +0800
commit0b1658ed7a215dad8295b02a30d5220011e199f1 (patch)
treef4e0b3727b468763adc3f63e9d15dab0e59a064a /modules/calendar/e-memo-shell-view.c
parentb9f0119ef5fb0a575253f9e3f1d3a5107ebc47c7 (diff)
downloadgsoc2013-evolution-0b1658ed7a215dad8295b02a30d5220011e199f1.tar
gsoc2013-evolution-0b1658ed7a215dad8295b02a30d5220011e199f1.tar.gz
gsoc2013-evolution-0b1658ed7a215dad8295b02a30d5220011e199f1.tar.bz2
gsoc2013-evolution-0b1658ed7a215dad8295b02a30d5220011e199f1.tar.lz
gsoc2013-evolution-0b1658ed7a215dad8295b02a30d5220011e199f1.tar.xz
gsoc2013-evolution-0b1658ed7a215dad8295b02a30d5220011e199f1.tar.zst
gsoc2013-evolution-0b1658ed7a215dad8295b02a30d5220011e199f1.zip
Bug 494394 - No way for the user to refresh a calendar
Diffstat (limited to 'modules/calendar/e-memo-shell-view.c')
-rw-r--r--modules/calendar/e-memo-shell-view.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/calendar/e-memo-shell-view.c b/modules/calendar/e-memo-shell-view.c
index 242bdfce92..206e50c961 100644
--- a/modules/calendar/e-memo-shell-view.c
+++ b/modules/calendar/e-memo-shell-view.c
@@ -176,6 +176,7 @@ memo_shell_view_update_actions (EShellView *shell_view)
gboolean selection_has_url;
gboolean single_memo_selected;
gboolean sources_are_editable;
+ gboolean refresh_supported;
priv = E_MEMO_SHELL_VIEW_GET_PRIVATE (shell_view);
@@ -204,6 +205,8 @@ memo_shell_view_update_actions (EShellView *shell_view)
(state & E_MEMO_SHELL_SIDEBAR_CAN_DELETE_PRIMARY_SOURCE);
primary_source_is_system =
(state & E_MEMO_SHELL_SIDEBAR_PRIMARY_SOURCE_IS_SYSTEM);
+ refresh_supported =
+ (state & E_MEMO_SHELL_SIDEBAR_SOURCE_SUPPORTS_REFRESH);
any_memos_selected =
(single_memo_selected || multiple_memos_selected);
@@ -245,6 +248,10 @@ memo_shell_view_update_actions (EShellView *shell_view)
sensitive = has_primary_source;
gtk_action_set_sensitive (action, sensitive);
+ action = ACTION (MEMO_LIST_REFRESH);
+ sensitive = refresh_supported;
+ gtk_action_set_sensitive (action, sensitive);
+
action = ACTION (MEMO_LIST_RENAME);
sensitive = can_delete_primary_source;
gtk_action_set_sensitive (action, sensitive);