aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-06-19 12:00:32 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-06-19 12:00:32 +0800
commit0d89b1de4249b086ca6718de413f4f20c0537d0e (patch)
tree3a3a7a01f69691bf517aed819dae3980a3999d95 /calendar
parent11c0b04807eda9a49359c8de9ab811c8942c2017 (diff)
downloadgsoc2013-evolution-0d89b1de4249b086ca6718de413f4f20c0537d0e.tar
gsoc2013-evolution-0d89b1de4249b086ca6718de413f4f20c0537d0e.tar.gz
gsoc2013-evolution-0d89b1de4249b086ca6718de413f4f20c0537d0e.tar.bz2
gsoc2013-evolution-0d89b1de4249b086ca6718de413f4f20c0537d0e.tar.lz
gsoc2013-evolution-0d89b1de4249b086ca6718de413f4f20c0537d0e.tar.xz
gsoc2013-evolution-0d89b1de4249b086ca6718de413f4f20c0537d0e.tar.zst
gsoc2013-evolution-0d89b1de4249b086ca6718de413f4f20c0537d0e.zip
fixed a DnD bug.
2000-06-18 Damon Chaplin <damon@helixcode.com> * gui/e-day-view.c (e_day_view_on_top_canvas_drag_data_received): fixed a DnD bug. svn path=/trunk/; revision=3628
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/e-day-view.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 8b8725effd..8fc5523a33 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-18 Damon Chaplin <damon@helixcode.com>
+
+ * gui/e-day-view.c (e_day_view_on_top_canvas_drag_data_received):
+ fixed a DnD bug.
+
2000-06-17 Dan Winship <danw@helixcode.com>
* cal-client/Makefile.am (INCLUDES): Fix to not depend on
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index ff7753cd54..d7914d92c2 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -5065,7 +5065,7 @@ e_day_view_on_top_canvas_drag_data_received (GtkWidget *widget,
if (pos != E_DAY_VIEW_POS_OUTSIDE) {
num_days = 1;
start_offset = 0;
- end_offset = 0;
+ end_offset = -1;
if (day_view->drag_event_day == E_DAY_VIEW_LONG_EVENT) {
event = &g_array_index (day_view->long_events, EDayViewEvent,
@@ -5083,7 +5083,6 @@ e_day_view_on_top_canvas_drag_data_received (GtkWidget *widget,
start_offset = event->start_minute;
end_offset = event->end_minute;
-
} else if (day_view->drag_event_day != -1) {
event = &g_array_index (day_view->events[day_view->drag_event_day],
EDayViewEvent,
@@ -5103,7 +5102,10 @@ e_day_view_on_top_canvas_drag_data_received (GtkWidget *widget,
ico = *event->ico;
ico.dtstart = day_view->day_starts[day] + start_offset * 60;
- ico.dtend = day_view->day_starts[day + num_days - 1] + end_offset * 60;
+ if (end_offset == -1 || end_offset == 0)
+ ico.dtend = day_view->day_starts[day + num_days];
+ else
+ ico.dtend = day_view->day_starts[day + num_days - 1] + end_offset * 60;
gtk_drag_finish (context, TRUE, TRUE, time);