Re: [evolution-patches] redrawing problems when resizing events



On Fri, 2003-05-16 at 18:12, Rodrigo Moya wrote:
> While trying to fix 43104, I came accross a display problem in the
> event's summary and category icons after resizing it. This fixes that
> problem.

it seems there was already a bug # for this -> 42220, which was for
1.4.x milestone.

I've marked it as 1.4 and updated the patch to include the bug number.

? gui/alarm-notify/alarm-notify.gladep
? gui/dialogs/alarm-options.gladep
? gui/dialogs/alarm-page.gladep
? gui/dialogs/cal-prefs-dialog.gladep
? gui/dialogs/e-delegate-dialog.gladep
? gui/dialogs/event-page.gladep
? gui/dialogs/meeting-page.gladep
? gui/dialogs/recurrence-page.gladep
? gui/dialogs/schedule-page.gladep
? gui/dialogs/task-details-page.gladep
? gui/dialogs/task-page.gladep
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.1767
diff -u -p -r1.1767 ChangeLog
--- ChangeLog	16 May 2003 14:36:44 -0000	1.1767
+++ ChangeLog	16 May 2003 16:32:50 -0000
@@ -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>
  
  	Fixes #43029
Index: gui/e-day-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-day-view.c,v
retrieving revision 1.191
diff -u -p -r1.191 e-day-view.c
--- gui/e-day-view.c	16 May 2003 14:36:56 -0000	1.191
+++ gui/e-day-view.c	16 May 2003 16:32:54 -0000
@@ -4922,6 +4922,17 @@ e_day_view_finish_resize (EDayView *day_
 		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;
 
@@ -4941,17 +4952,6 @@ e_day_view_finish_resize (EDayView *day_
 	} 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);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]