aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-05-18 19:11:38 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-05-18 19:11:38 +0800
commit00fa9ecbc5caa1fa521c3736aaf3041aaa75fa81 (patch)
tree28dcdf7819072b042ac3c59cce1e2667ac990c51
parent63c34c461549a1b07aafd191ba9d5f129a896527 (diff)
downloadgsoc2013-evolution-00fa9ecbc5caa1fa521c3736aaf3041aaa75fa81.tar
gsoc2013-evolution-00fa9ecbc5caa1fa521c3736aaf3041aaa75fa81.tar.gz
gsoc2013-evolution-00fa9ecbc5caa1fa521c3736aaf3041aaa75fa81.tar.bz2
gsoc2013-evolution-00fa9ecbc5caa1fa521c3736aaf3041aaa75fa81.tar.lz
gsoc2013-evolution-00fa9ecbc5caa1fa521c3736aaf3041aaa75fa81.tar.xz
gsoc2013-evolution-00fa9ecbc5caa1fa521c3736aaf3041aaa75fa81.tar.zst
gsoc2013-evolution-00fa9ecbc5caa1fa521c3736aaf3041aaa75fa81.zip
Fixes #42220
2003-05-16 Rodrigo Moya <rodrigo@ximian.com> Fixes #42220 * gui/e-day-view.c (e_day_view_finish_resize): hide canvas items and update internal fields before updating the object. svn path=/trunk/; revision=21233
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-day-view.c22
2 files changed, 18 insertions, 11 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index d940bb8bb3..0a29876785 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2003-05-16 Rodrigo Moya <rodrigo@ximian.com>
+
+ Fixes #42220
+
+ * gui/e-day-view.c (e_day_view_finish_resize): hide canvas items and
+ update internal fields before updating the object.
+
2003-05-15 JP Rosevear <jpr@ximian.com>
* gui/dialogs/comp-editor.c (comp_editor_finalize): unref the
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index f6aba9eede..ec27dc79fa 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -4928,6 +4928,17 @@ e_day_view_finish_resize (EDayView *day_view)
cal_component_set_dtend (comp, &date);
}
+ gnome_canvas_item_hide (day_view->resize_rect_item);
+ gnome_canvas_item_hide (day_view->resize_bar_item);
+
+ /* Hide the horizontal bars. */
+ day_view->resize_bars_event_day = -1;
+ day_view->resize_bars_event_num = -1;
+ gnome_canvas_item_hide (day_view->main_canvas_top_resize_bar_item);
+ gnome_canvas_item_hide (day_view->main_canvas_bottom_resize_bar_item);
+
+ day_view->resize_drag_pos = E_DAY_VIEW_POS_NONE;
+
if (cal_component_is_instance (comp)) {
CalObjModType mod;
@@ -4947,17 +4958,6 @@ e_day_view_finish_resize (EDayView *day_view)
} else {
g_message ("e_day_view_finish_resize(): Could not update the object!");
}
-
- gnome_canvas_item_hide (day_view->resize_rect_item);
- gnome_canvas_item_hide (day_view->resize_bar_item);
-
- /* Hide the horizontal bars. */
- day_view->resize_bars_event_day = -1;
- day_view->resize_bars_event_num = -1;
- gnome_canvas_item_hide (day_view->main_canvas_top_resize_bar_item);
- gnome_canvas_item_hide (day_view->main_canvas_bottom_resize_bar_item);
-
- day_view->resize_drag_pos = E_DAY_VIEW_POS_NONE;
g_object_unref (comp);
}