diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-07-26 19:54:33 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-08-03 23:40:13 +0800 |
commit | 4fedf14c7b90d1bab1906d0e1ffd676af620c15c (patch) | |
tree | b0df6fd65232a528924eb7e0a3b0fda5119390f8 /modules/calendar/e-memo-shell-view.c | |
parent | cdc45d0ef235591a93e980f7513e5fadd7abb315 (diff) | |
download | gsoc2013-evolution-4fedf14c7b90d1bab1906d0e1ffd676af620c15c.tar gsoc2013-evolution-4fedf14c7b90d1bab1906d0e1ffd676af620c15c.tar.gz gsoc2013-evolution-4fedf14c7b90d1bab1906d0e1ffd676af620c15c.tar.bz2 gsoc2013-evolution-4fedf14c7b90d1bab1906d0e1ffd676af620c15c.tar.lz gsoc2013-evolution-4fedf14c7b90d1bab1906d0e1ffd676af620c15c.tar.xz gsoc2013-evolution-4fedf14c7b90d1bab1906d0e1ffd676af620c15c.tar.zst gsoc2013-evolution-4fedf14c7b90d1bab1906d0e1ffd676af620c15c.zip |
Enable "delete" action for remote-deletable sources.
Diffstat (limited to 'modules/calendar/e-memo-shell-view.c')
-rw-r--r-- | modules/calendar/e-memo-shell-view.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/calendar/e-memo-shell-view.c b/modules/calendar/e-memo-shell-view.c index 34c9704a0d..c271f9b773 100644 --- a/modules/calendar/e-memo-shell-view.c +++ b/modules/calendar/e-memo-shell-view.c @@ -186,6 +186,7 @@ memo_shell_view_update_actions (EShellView *shell_view) gboolean multiple_memos_selected; gboolean primary_source_is_writable; gboolean primary_source_is_removable; + gboolean primary_source_is_remote_deletable; gboolean primary_source_in_collection; gboolean selection_has_url; gboolean single_memo_selected; @@ -218,6 +219,8 @@ memo_shell_view_update_actions (EShellView *shell_view) (state & E_MEMO_SHELL_SIDEBAR_PRIMARY_SOURCE_IS_WRITABLE); primary_source_is_removable = (state & E_MEMO_SHELL_SIDEBAR_PRIMARY_SOURCE_IS_REMOVABLE); + primary_source_is_remote_deletable = + (state & E_MEMO_SHELL_SIDEBAR_PRIMARY_SOURCE_IS_REMOTE_DELETABLE); primary_source_in_collection = (state & E_MEMO_SHELL_SIDEBAR_PRIMARY_SOURCE_IN_COLLECTION); refresh_supported = @@ -248,7 +251,9 @@ memo_shell_view_update_actions (EShellView *shell_view) gtk_action_set_sensitive (action, sensitive); action = ACTION (MEMO_LIST_DELETE); - sensitive = primary_source_is_removable; + sensitive = + primary_source_is_removable || + primary_source_is_remote_deletable; gtk_action_set_sensitive (action, sensitive); action = ACTION (MEMO_LIST_PROPERTIES); |