diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-11-11 23:16:26 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-11-11 23:18:27 +0800 |
commit | 8f15511a1e0ee0f301b35ce033c993ed1a58b4ee (patch) | |
tree | beea17c5136c6c5b2e9b5b765fbb1bc8d1b40c34 /modules/calendar/e-cal-shell-view.c | |
parent | 99dcc19b927dd63856dded5f6d7600e35c21039b (diff) | |
download | gsoc2013-evolution-8f15511a1e0ee0f301b35ce033c993ed1a58b4ee.tar.gz gsoc2013-evolution-8f15511a1e0ee0f301b35ce033c993ed1a58b4ee.tar.zst gsoc2013-evolution-8f15511a1e0ee0f301b35ce033c993ed1a58b4ee.zip |
BugĀ 601516 - Calendar views missing from calendar popup menu
This also fixes a couple other popup menu glitches.
Diffstat (limited to 'modules/calendar/e-cal-shell-view.c')
-rw-r--r-- | modules/calendar/e-cal-shell-view.c | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/modules/calendar/e-cal-shell-view.c b/modules/calendar/e-cal-shell-view.c index 00a71f540d..b696660106 100644 --- a/modules/calendar/e-cal-shell-view.c +++ b/modules/calendar/e-cal-shell-view.c @@ -384,6 +384,12 @@ cal_shell_view_update_actions (EShellView *shell_view) sensitive = editable; gtk_action_set_sensitive (action, sensitive); + action = ACTION (EVENT_DELEGATE); + sensitive = + (n_selected == 1) && editable && + is_delegatable && is_meeting; + gtk_action_set_sensitive (action, sensitive); + action = ACTION (EVENT_DELETE); sensitive = (n_selected > 0) && editable && !recurring; gtk_action_set_sensitive (action, sensitive); @@ -396,24 +402,26 @@ cal_shell_view_update_actions (EShellView *shell_view) sensitive = (n_selected > 0) && editable && recurring; gtk_action_set_sensitive (action, sensitive); - action = ACTION (EVENT_OPEN); + action = ACTION (EVENT_FORWARD); sensitive = (n_selected == 1); gtk_action_set_sensitive (action, sensitive); - action = ACTION (OCCURRENCE_MOVABLE); - sensitive = (n_selected == 1) && editable && recurring && is_instance; + action = ACTION (EVENT_OCCURRENCE_MOVABLE); + sensitive = + (n_selected == 1) && editable && + recurring && is_instance; gtk_action_set_sensitive (action, sensitive); - action = ACTION (EVENT_DELEGATE); - sensitive = (n_selected == 1) && editable && is_delegatable && is_meeting; + action = ACTION (EVENT_OPEN); + sensitive = (n_selected == 1); gtk_action_set_sensitive (action, sensitive); - action = ACTION (EVENT_SCHEDULE); - sensitive = (n_selected == 1) && editable && !is_meeting; + action = ACTION (EVENT_PRINT); + sensitive = (n_selected == 1); gtk_action_set_sensitive (action, sensitive); - action = ACTION (EVENT_FORWARD); - sensitive = TRUE; + action = ACTION (EVENT_SCHEDULE); + sensitive = (n_selected == 1) && editable && !is_meeting; gtk_action_set_sensitive (action, sensitive); action = ACTION (EVENT_REPLY); |