diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-08-13 04:43:04 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-13 06:30:19 +0800 |
commit | 88aa930c58ad27858453a2109cc899f34df21056 (patch) | |
tree | a21905314aaca29dd2c17c4f4954995f6071b3c3 /modules/calendar/e-cal-shell-view-private.c | |
parent | 6575bf9d46f183b553885b5a47c206255f45bed6 (diff) | |
download | gsoc2013-evolution-88aa930c58ad27858453a2109cc899f34df21056.tar.gz gsoc2013-evolution-88aa930c58ad27858453a2109cc899f34df21056.tar.zst gsoc2013-evolution-88aa930c58ad27858453a2109cc899f34df21056.zip |
Make switching between calendar views work.
Diffstat (limited to 'modules/calendar/e-cal-shell-view-private.c')
-rw-r--r-- | modules/calendar/e-cal-shell-view-private.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/calendar/e-cal-shell-view-private.c b/modules/calendar/e-cal-shell-view-private.c index 063e7461ed..60ec3c77ab 100644 --- a/modules/calendar/e-cal-shell-view-private.c +++ b/modules/calendar/e-cal-shell-view-private.c @@ -368,6 +368,11 @@ e_cal_shell_view_private_constructed (ECalShellView *cal_shell_view) e_cal_shell_view_update_sidebar (cal_shell_view); e_cal_shell_view_update_search_filter (cal_shell_view); e_cal_shell_view_update_timezone (cal_shell_view); + + /* Keep the toolbar view buttons in sync with the calendar. */ + e_mutual_binding_new ( + G_OBJECT (calendar), "view", + G_OBJECT (ACTION (CALENDAR_VIEW_DAY)), "current-value"); } void @@ -658,6 +663,7 @@ e_cal_shell_view_update_sidebar (ECalShellView *cal_shell_view) { EShellView *shell_view; EShellSidebar *shell_sidebar; + ECalShellContent *cal_shell_content; GnomeCalendar *calendar; GnomeCalendarViewType view; time_t start_time, end_time; @@ -672,7 +678,8 @@ e_cal_shell_view_update_sidebar (ECalShellView *cal_shell_view) shell_view = E_SHELL_VIEW (cal_shell_view); shell_sidebar = e_shell_view_get_shell_sidebar (shell_view); - calendar = e_cal_shell_view_get_calendar (cal_shell_view); + cal_shell_content = cal_shell_view->priv->cal_shell_content; + calendar = e_cal_shell_content_get_calendar (cal_shell_content); gnome_calendar_get_visible_time_range ( calendar, &start_time, &end_time); |