From 8869eb3d7c96b978b817d94bbfc7d0c73e23ebd7 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 9 Nov 2001 03:05:49 +0000 Subject: don't let an empty event occur for all days when auto scrolling 2001-11-08 JP Rosevear * gui/e-meeting-time-sel.c (e_meeting_time_selector_timeout_handler): don't let an empty event occur for all days when auto scrolling svn path=/trunk/; revision=14640 --- calendar/gui/e-meeting-time-sel.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'calendar/gui/e-meeting-time-sel.c') diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c index d24b762798..0decccb9ef 100644 --- a/calendar/gui/e-meeting-time-sel.c +++ b/calendar/gui/e-meeting-time-sel.c @@ -2534,6 +2534,16 @@ e_meeting_time_selector_timeout_handler (gpointer data) goto scroll; } + /* Don't let an empty occur for all day events */ + if (mts->all_day + && mts->dragging_position == E_MEETING_TIME_SELECTOR_POS_START + && e_meeting_time_selector_compare_times (&mts->meeting_end_time, &drag_time) == 0) + goto scroll; + else if (mts->all_day + && mts->dragging_position == E_MEETING_TIME_SELECTOR_POS_END + && e_meeting_time_selector_compare_times (&mts->meeting_start_time, &drag_time) == 0) + goto scroll; + *time_to_set = drag_time; /* Check if the start time and end time need to be switched. */ -- cgit