From 63770f80502ab76fa294cb26ecd8eb8f38cba7c4 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 6 Jul 2004 13:53:00 +0000 Subject: Fixes #60645 2004-07-06 JP Rosevear Fixes #60645 * gui/e-calendar-view.c (e_calendar_view_new_appointment_full): guess when an item should be all day based on the selection time svn path=/trunk/; revision=26586 --- calendar/ChangeLog | 7 +++++++ calendar/gui/e-calendar-view.c | 4 ++++ 2 files changed, 11 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index f4182b9c41..035a165463 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2004-07-06 JP Rosevear + + Fixes #60645 + + * gui/e-calendar-view.c (e_calendar_view_new_appointment_full): + guess when an item should be all day based on the selection time + 2004-07-05 Rodrigo Moya * gui/gnome-cal.c (setup_widgets): don't set the timezone on the views diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 12e8ec93b3..46d8722fda 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -1608,6 +1608,10 @@ e_calendar_view_new_appointment_full (ECalendarView *cal_view, gboolean all_day, dtstart = time (NULL); dtend = dtstart + 3600; } + /* FIXME This is a rough hack to make sure "all day" is set for */ + if ((dtend - dtstart) % (60 * 60 * 24) == 0) + all_day = TRUE; + e_calendar_view_new_appointment_for (cal_view, dtstart, dtend, all_day, meeting); } -- cgit v1.2.3