aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-07-06 21:53:00 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-07-06 21:53:00 +0800
commit63770f80502ab76fa294cb26ecd8eb8f38cba7c4 (patch)
tree10ca7a23a75f96dc4bb9358b7e319e9dd7fc790f
parentff7fb8bb7a414b7aafde55f9e3d3438138244645 (diff)
downloadgsoc2013-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
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-calendar-view.c4
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);
}