[evolution-patches] Fix for a few leaks in the Calendar week view



this is a partial fix for some memory build-up observed in evolution..
kindly review the same.

thanks,
harish
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2573
diff -u -3 -p -u -p -r1.2573 ChangeLog
--- ChangeLog	3 Dec 2004 03:40:46 -0000	1.2573
+++ ChangeLog	6 Dec 2004 15:03:58 -0000
@@ -1,3 +1,8 @@
+2004-12-06  Harish Krishnaswamy <kharish novell com>
+	
+	* gui/e-week.c (time_range_changed_cb, e_week_view_set_first_day_shown):
+	update the query so currently held events can be cleared off.
+
 2004-12-02  Chenthill Palanisamy  <pchenthill novell com>
 
 	* gui/dialogs/task-editor.[ch] (task_editor_new), (task_editor_construct),
Index: gui/e-week-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-week-view.c,v
retrieving revision 1.229
diff -u -3 -p -u -p -r1.229 e-week-view.c
--- gui/e-week-view.c	2 Dec 2004 13:14:21 -0000	1.229
+++ gui/e-week-view.c	6 Dec 2004 15:03:58 -0000
@@ -285,6 +285,7 @@ time_range_changed_cb (ECalModel *model,
 		start_time = time_day_begin_with_zone (start_time,
 						       e_calendar_view_get_timezone (E_CALENDAR_VIEW (week_view)));
 		e_week_view_recalc_day_starts (week_view, start_time);
+		e_week_view_update_query (week_view);
 	}
 
 	/* Reset the adjustment value to 0 if the base address has changed.
@@ -430,6 +431,7 @@ model_rows_inserted_cb (ETableModel *etm
 	int i;
 
 	model = e_calendar_view_get_model (E_CALENDAR_VIEW (week_view));
+
 	for (i = 0; i < count; i++) {
 		ECalModelComponent *comp_data;
 
@@ -1610,6 +1612,7 @@ e_week_view_set_first_day_shown		(EWeekV
 	if (update_adjustment_value)
 		gtk_adjustment_set_value (GTK_RANGE (week_view->vscrollbar)->adjustment, 0);
 
+	e_week_view_update_query (week_view);
 	gtk_widget_queue_draw (week_view->main_canvas);
 }
 


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