diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/gnome-cal.c | 22 | ||||
-rw-r--r-- | calendar/gui/gnome-cal.h | 2 |
2 files changed, 14 insertions, 10 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 43e85804d1..9c99efaec9 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1776,7 +1776,7 @@ gnome_calendar_on_date_navigator_selection_changed (ECalendarItem *calitem, priv->selection_end_time = mktime (&tm); e_day_view_set_days_shown (E_DAY_VIEW (priv->day_view), new_days_shown); - set_view (gcal, GNOME_CAL_DAY_VIEW, TRUE, FALSE); + gnome_calendar_set_view (gcal, GNOME_CAL_DAY_VIEW, TRUE, FALSE); } gnome_calendar_update_view_buttons (gcal); @@ -1970,17 +1970,19 @@ gnome_calendar_cut_clipboard (GnomeCalendar *gcal) switch (priv->current_view_type) { case GNOME_CAL_DAY_VIEW : - e_day_view_cut_clipboard (priv->day_view); + e_day_view_cut_clipboard (E_DAY_VIEW (priv->day_view)); break; case GNOME_CAL_WORK_WEEK_VIEW : - e_day_view_cut_clipboard (priv->work_week_view); + e_day_view_cut_clipboard (E_DAY_VIEW (priv->work_week_view)); break; case GNOME_CAL_WEEK_VIEW : - e_week_view_cut_clipboard (priv->week_view); + e_week_view_cut_clipboard (E_WEEK_VIEW (priv->week_view)); break; case GNOME_CAL_MONTH_VIEW : - e_week_view_cut_clipboard (priv->month_view); + e_week_view_cut_clipboard (E_WEEK_VIEW (priv->month_view)); break; + default: + g_assert_not_reached (); } } @@ -1993,17 +1995,19 @@ gnome_calendar_copy_clipboard (GnomeCalendar *gcal) switch (priv->current_view_type) { case GNOME_CAL_DAY_VIEW : - e_day_view_copy_clipboard (priv->day_view); + e_day_view_copy_clipboard (E_DAY_VIEW (priv->day_view)); break; case GNOME_CAL_WORK_WEEK_VIEW : - e_day_view_copy_clipboard (priv->work_week_view); + e_day_view_copy_clipboard (E_DAY_VIEW (priv->work_week_view)); break; case GNOME_CAL_WEEK_VIEW : - e_week_view_copy_clipboard (priv->week_view); + e_week_view_copy_clipboard (E_WEEK_VIEW (priv->week_view)); break; case GNOME_CAL_MONTH_VIEW : - e_week_view_copy_clipboard (priv->month_view); + e_week_view_copy_clipboard (E_WEEK_VIEW (priv->month_view)); break; + default: + g_assert_not_reached (); } } diff --git a/calendar/gui/gnome-cal.h b/calendar/gui/gnome-cal.h index d7721acec4..950d650d1a 100644 --- a/calendar/gui/gnome-cal.h +++ b/calendar/gui/gnome-cal.h @@ -135,7 +135,7 @@ void gnome_calendar_set_view_buttons (GnomeCalendar *gcal, void gnome_calendar_update_view_buttons (GnomeCalendar *gcal); /* Clipboard operations */ -void gnome_calendar_cut_clibpoard (GnomeCalendar *gcal); +void gnome_calendar_cut_clipboard (GnomeCalendar *gcal); void gnome_calendar_copy_clipboard (GnomeCalendar *gcal); void gnome_calendar_paste_clipboard (GnomeCalendar *gcal); |