diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-10 01:26:37 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-10 04:55:15 +0800 |
commit | 2b9fd2bf21dbc1bfdcc92b6826768cbb69706610 (patch) | |
tree | 434525397e94ec8c24623954c5f36d6845e466fc /modules/calendar | |
parent | c9dfbd7769e51c491b9606d0eb4812dc0dadaaf5 (diff) | |
download | gsoc2013-evolution-2b9fd2bf21dbc1bfdcc92b6826768cbb69706610.tar.gz gsoc2013-evolution-2b9fd2bf21dbc1bfdcc92b6826768cbb69706610.tar.zst gsoc2013-evolution-2b9fd2bf21dbc1bfdcc92b6826768cbb69706610.zip |
Bug 593646 - Starting in day view does not restore panels correctly
Diffstat (limited to 'modules/calendar')
-rw-r--r-- | modules/calendar/e-cal-shell-view-actions.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/modules/calendar/e-cal-shell-view-actions.c b/modules/calendar/e-cal-shell-view-actions.c index 3dfb4888e7..37c7e38413 100644 --- a/modules/calendar/e-cal-shell-view-actions.c +++ b/modules/calendar/e-cal-shell-view-actions.c @@ -21,6 +21,11 @@ #include "e-cal-shell-view-private.h" +/* This is for radio action groups whose value is persistent. We + * initialize it to a bogus value to ensure a "changed" signal is + * emitted when a valid value is restored. */ +#define BOGUS_INITIAL_VALUE G_MININT + static void action_calendar_copy_cb (GtkAction *action, ECalShellView *cal_shell_view) @@ -1484,6 +1489,16 @@ static EPopupActionEntry calendar_popup_entries[] = { static GtkRadioActionEntry calendar_view_entries[] = { + /* This action represents the initial calendar view. + * It should not be visible in the UI, nor should it be + * possible to switch to it from another calendar view. */ + { "calendar-view-initial", + NULL, + NULL, + NULL, + NULL, + BOGUS_INITIAL_VALUE }, + { "calendar-view-day", "view-calendar-day", N_("Day"), @@ -1627,7 +1642,7 @@ e_cal_shell_view_actions_init (ECalShellView *cal_shell_view) G_N_ELEMENTS (calendar_popup_entries)); gtk_action_group_add_radio_actions ( action_group, calendar_view_entries, - G_N_ELEMENTS (calendar_view_entries), GNOME_CAL_DAY_VIEW, + G_N_ELEMENTS (calendar_view_entries), BOGUS_INITIAL_VALUE, G_CALLBACK (action_calendar_view_cb), cal_shell_view); gtk_action_group_add_radio_actions ( action_group, calendar_search_entries, |