aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-memo-shell-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-14 05:11:47 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-14 05:12:49 +0800
commit3d4b38c997b20ddc706aa72b9c858b2548438e31 (patch)
tree8b2261143e677c64272d751dcd76239fc5e34855 /modules/calendar/e-memo-shell-view.c
parent96be68a972f2985c32f94960ae76dcc0e250f597 (diff)
downloadgsoc2013-evolution-3d4b38c997b20ddc706aa72b9c858b2548438e31.tar.gz
gsoc2013-evolution-3d4b38c997b20ddc706aa72b9c858b2548438e31.tar.zst
gsoc2013-evolution-3d4b38c997b20ddc706aa72b9c858b2548438e31.zip
BugĀ 601785 - Menu glitches in memo and task view
Diffstat (limited to 'modules/calendar/e-memo-shell-view.c')
-rw-r--r--modules/calendar/e-memo-shell-view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/calendar/e-memo-shell-view.c b/modules/calendar/e-memo-shell-view.c
index a391d6b7a9..7a5b68159d 100644
--- a/modules/calendar/e-memo-shell-view.c
+++ b/modules/calendar/e-memo-shell-view.c
@@ -171,6 +171,7 @@ memo_shell_view_update_actions (EShellView *shell_view)
gboolean selection_has_url;
gboolean single_memo_selected;
gboolean sources_are_editable;
+ gboolean clipboard_has_calendar;
priv = E_MEMO_SHELL_VIEW_GET_PRIVATE (shell_view);
@@ -187,6 +188,8 @@ memo_shell_view_update_actions (EShellView *shell_view)
(state & E_MEMO_SHELL_CONTENT_SELECTION_CAN_EDIT);
selection_has_url =
(state & E_MEMO_SHELL_CONTENT_SELECTION_HAS_URL);
+ clipboard_has_calendar =
+ (state & E_MEMO_SHELL_CONTENT_CLIPBOARD_HAS_CALENDAR);
shell_sidebar = e_shell_view_get_shell_sidebar (shell_view);
state = e_shell_sidebar_check_state (shell_sidebar);
@@ -208,7 +211,7 @@ memo_shell_view_update_actions (EShellView *shell_view)
gtk_action_set_sensitive (action, sensitive);
action = ACTION (MEMO_CLIPBOARD_PASTE);
- sensitive = sources_are_editable;
+ sensitive = sources_are_editable && clipboard_has_calendar;
gtk_action_set_sensitive (action, sensitive);
action = ACTION (MEMO_DELETE);