diff options
author | JP Rosevear <jpr@novell.com> | 2004-07-06 21:53:00 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-07-06 21:53:00 +0800 |
commit | 63770f80502ab76fa294cb26ecd8eb8f38cba7c4 (patch) | |
tree | 10ca7a23a75f96dc4bb9358b7e319e9dd7fc790f /calendar/gui | |
parent | ff7fb8bb7a414b7aafde55f9e3d3438138244645 (diff) | |
download | gsoc2013-evolution-63770f80502ab76fa294cb26ecd8eb8f38cba7c4.tar gsoc2013-evolution-63770f80502ab76fa294cb26ecd8eb8f38cba7c4.tar.gz gsoc2013-evolution-63770f80502ab76fa294cb26ecd8eb8f38cba7c4.tar.bz2 gsoc2013-evolution-63770f80502ab76fa294cb26ecd8eb8f38cba7c4.tar.lz gsoc2013-evolution-63770f80502ab76fa294cb26ecd8eb8f38cba7c4.tar.xz gsoc2013-evolution-63770f80502ab76fa294cb26ecd8eb8f38cba7c4.tar.zst gsoc2013-evolution-63770f80502ab76fa294cb26ecd8eb8f38cba7c4.zip |
Fixes #60645
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
svn path=/trunk/; revision=26586
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-calendar-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |