From 4eb33d8180409c244b3f774d15556da2c3c519db Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sat, 30 Jun 2001 20:56:19 +0000 Subject: Doh, the call for the day view was supposed to be 2001-06-30 Federico Mena Quintero * gui/gnome-cal.c (gnome_calendar_on_date_navigator_selection_changed): Doh, the call for the day view was supposed to be gnome_calendar_set_view(), not set_view(). Fixes bug #3779. svn path=/trunk/; revision=10636 --- calendar/ChangeLog | 7 +++++++ calendar/gui/gnome-cal.c | 22 +++++++++++++--------- calendar/gui/gnome-cal.h | 2 +- 3 files changed, 21 insertions(+), 10 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 7e3198345f..c07d45c647 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2001-06-30 Federico Mena Quintero + + * gui/gnome-cal.c + (gnome_calendar_on_date_navigator_selection_changed): Doh, the + call for the day view was supposed to be + gnome_calendar_set_view(), not set_view(). Fixes bug #3779. + 2001-06-30 Rodrigo Moya * gui/tasks-control.c (tasks_control_cut_cmd): call 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); -- cgit v1.2.3