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 | |
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')
-rw-r--r-- | modules/calendar/e-cal-shell-view-actions.h | 14 | ||||
-rw-r--r-- | modules/calendar/e-cal-shell-view.c | 26 |
2 files changed, 25 insertions, 15 deletions
diff --git a/modules/calendar/e-cal-shell-view-actions.h b/modules/calendar/e-cal-shell-view-actions.h index 46d8992859..e05649397e 100644 --- a/modules/calendar/e-cal-shell-view-actions.h +++ b/modules/calendar/e-cal-shell-view-actions.h @@ -69,26 +69,28 @@ E_SHELL_WINDOW_ACTION ((window), "event-clipboard-cut") #define E_SHELL_WINDOW_ACTION_EVENT_CLIPBOARD_PASTE(window) \ E_SHELL_WINDOW_ACTION ((window), "event-clipboard-paste") +#define E_SHELL_WINDOW_ACTION_EVENT_DELEGATE(window) \ + E_SHELL_WINDOW_ACTION ((window), "event-delegate") #define E_SHELL_WINDOW_ACTION_EVENT_DELETE(window) \ E_SHELL_WINDOW_ACTION ((window), "event-delete") #define E_SHELL_WINDOW_ACTION_EVENT_DELETE_OCCURRENCE(window) \ E_SHELL_WINDOW_ACTION ((window), "event-delete-occurrence") #define E_SHELL_WINDOW_ACTION_EVENT_DELETE_OCCURRENCE_ALL(window) \ E_SHELL_WINDOW_ACTION ((window), "event-delete-occurrence-all") +#define E_SHELL_WINDOW_ACTION_EVENT_FORWARD(window) \ + E_SHELL_WINDOW_ACTION ((window), "event-forward") #define E_SHELL_WINDOW_ACTION_EVENT_OPEN(window) \ E_SHELL_WINDOW_ACTION ((window), "event-open") -#define E_SHELL_WINDOW_ACTION_OCCURRENCE_MOVABLE(window) \ - E_SHELL_WINDOW_ACTION ((window), "event-occurrence-movable") -#define E_SHELL_WINDOW_ACTION_EVENT_DELEGATE(window) \ - E_SHELL_WINDOW_ACTION ((window), "event-delegate") +#define E_SHELL_WINDOW_ACTION_EVENT_PRINT(window) \ + E_SHELL_WINDOW_ACTION ((window), "event-print") #define E_SHELL_WINDOW_ACTION_EVENT_SCHEDULE(window) \ E_SHELL_WINDOW_ACTION ((window), "event-schedule") -#define E_SHELL_WINDOW_ACTION_EVENT_FORWARD(window) \ - E_SHELL_WINDOW_ACTION ((window), "event-forward") #define E_SHELL_WINDOW_ACTION_EVENT_REPLY(window) \ E_SHELL_WINDOW_ACTION ((window), "event-reply") #define E_SHELL_WINDOW_ACTION_EVENT_REPLY_ALL(window) \ E_SHELL_WINDOW_ACTION ((window), "event-reply-all") +#define E_SHELL_WINDOW_ACTION_EVENT_OCCURRENCE_MOVABLE(window) \ + E_SHELL_WINDOW_ACTION ((window), "event-occurrence-movable") /* Memo Pad Actions */ #define E_SHELL_WINDOW_ACTION_CALENDAR_MEMOPAD_CLIPBOARD_COPY(window) \ 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); |