aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-task-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-task-shell-view.c
parent96be68a972f2985c32f94960ae76dcc0e250f597 (diff)
downloadgsoc2013-evolution-3d4b38c997b20ddc706aa72b9c858b2548438e31.tar
gsoc2013-evolution-3d4b38c997b20ddc706aa72b9c858b2548438e31.tar.gz
gsoc2013-evolution-3d4b38c997b20ddc706aa72b9c858b2548438e31.tar.bz2
gsoc2013-evolution-3d4b38c997b20ddc706aa72b9c858b2548438e31.tar.lz
gsoc2013-evolution-3d4b38c997b20ddc706aa72b9c858b2548438e31.tar.xz
gsoc2013-evolution-3d4b38c997b20ddc706aa72b9c858b2548438e31.tar.zst
gsoc2013-evolution-3d4b38c997b20ddc706aa72b9c858b2548438e31.zip
BugĀ 601785 - Menu glitches in memo and task view
Diffstat (limited to 'modules/calendar/e-task-shell-view.c')
-rw-r--r--modules/calendar/e-task-shell-view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/calendar/e-task-shell-view.c b/modules/calendar/e-task-shell-view.c
index 72d6c1d117..a55d120cb8 100644
--- a/modules/calendar/e-task-shell-view.c
+++ b/modules/calendar/e-task-shell-view.c
@@ -286,6 +286,7 @@ task_shell_view_update_actions (EShellView *shell_view)
gboolean some_tasks_complete;
gboolean some_tasks_incomplete;
gboolean sources_are_editable;
+ gboolean clipboard_has_calendar;
priv = E_TASK_SHELL_VIEW_GET_PRIVATE (shell_view);
@@ -308,6 +309,8 @@ task_shell_view_update_actions (EShellView *shell_view)
(state & E_TASK_SHELL_CONTENT_SELECTION_HAS_INCOMPLETE);
selection_has_url =
(state & E_TASK_SHELL_CONTENT_SELECTION_HAS_URL);
+ clipboard_has_calendar =
+ (state & E_TASK_SHELL_CONTENT_CLIPBOARD_HAS_CALENDAR);
shell_sidebar = e_shell_view_get_shell_sidebar (shell_view);
state = e_shell_sidebar_check_state (shell_sidebar);
@@ -335,7 +338,7 @@ task_shell_view_update_actions (EShellView *shell_view)
gtk_action_set_sensitive (action, sensitive);
action = ACTION (TASK_CLIPBOARD_PASTE);
- sensitive = sources_are_editable;
+ sensitive = sources_are_editable && clipboard_has_calendar;
gtk_action_set_sensitive (action, sensitive);
action = ACTION (TASK_DELETE);