aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-11-09 11:05:49 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-11-09 11:05:49 +0800
commit8869eb3d7c96b978b817d94bbfc7d0c73e23ebd7 (patch)
tree9db23d78a8570236b1accfd7c042b4d9fae9be26
parent64c19759bfa6820bd67b47d659ea7241f2efbd9b (diff)
downloadgsoc2013-evolution-8869eb3d7c96b978b817d94bbfc7d0c73e23ebd7.tar.gz
gsoc2013-evolution-8869eb3d7c96b978b817d94bbfc7d0c73e23ebd7.tar.zst
gsoc2013-evolution-8869eb3d7c96b978b817d94bbfc7d0c73e23ebd7.zip
don't let an empty event occur for all days when auto scrolling
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 svn path=/trunk/; revision=14640
-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. */