diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-05-18 19:11:38 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-05-18 19:11:38 +0800 |
commit | 00fa9ecbc5caa1fa521c3736aaf3041aaa75fa81 (patch) | |
tree | 28dcdf7819072b042ac3c59cce1e2667ac990c51 /calendar/gui/e-day-view.c | |
parent | 63c34c461549a1b07aafd191ba9d5f129a896527 (diff) | |
download | gsoc2013-evolution-00fa9ecbc5caa1fa521c3736aaf3041aaa75fa81.tar.gz 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
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r-- | calendar/gui/e-day-view.c | 22 |
1 files changed, 11 insertions, 11 deletions
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); } |