aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/e-meeting-time-sel.c10
2 files changed, 16 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index b8c1b4b28e..016b1f0422 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2001-11-08 JP Rosevear <jpr@ximian.com>
+
+ * 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
+
2001-11-08 Rodrigo Moya <rodrigo@ximian.com>
* pcs/cal-backend-file.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. */