diff options
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/e-calendar-view.c | 4 |
2 files changed, 11 insertions, 0 deletions
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 <jpr@novell.com> + + 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 <rodrigo@novell.com> * 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); } |