From 67dee2832ef29749a2cf1db70e87c5dc469a6576 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 23 Dec 2004 12:41:41 +0000 Subject: get instance times using the correct timezone. (redo_queries): emit 2004-12-23 Rodrigo Moya * gui/e-cal-model.c (set_instance_times): get instance times using the correct timezone. (redo_queries): emit signals before clearing the array. * gui/e-day-view.c (process_component): * gui/e-week-view.c (process_component): no need to try to update, always add. svn path=/trunk/; revision=28193 --- calendar/gui/e-week-view.c | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'calendar') diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index e552c009d8..64c2075cb9 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -330,45 +330,6 @@ process_component (EWeekView *week_view, ECalModelComponent *comp_data) else rid = NULL; -/* /\* If the event already exists and the dates didn't change, we can */ -/* update the event fairly easily without changing the events arrays */ -/* or computing a new layout. *\/ */ -/* if (e_week_view_find_event_from_uid (week_view, uid, rid, &event_num)) { */ -/* ECalComponent *tmp_comp; */ - -/* event = &g_array_index (week_view->events, EWeekViewEvent, event_num); */ - -/* tmp_comp = e_cal_component_new (); */ -/* e_cal_component_set_icalcomponent (tmp_comp, icalcomponent_new_clone (event->comp_data->icalcomp)); */ -/* if (!e_cal_component_has_recurrences (comp) */ -/* && !e_cal_component_has_recurrences (tmp_comp) */ -/* && e_cal_component_event_dates_match (comp, tmp_comp)) { */ -/* #if 0 */ -/* g_print ("updated object's dates unchanged\n"); */ -/* #endif */ -/* e_week_view_update_event_cb (week_view, event_num, comp_data); */ -/* g_object_unref (comp); */ -/* g_object_unref (tmp_comp); */ -/* gtk_widget_queue_draw (week_view->main_canvas); */ -/* return; */ -/* } */ - -/* /\* The dates have changed, so we need to remove the */ -/* old object before adding the new ones. *\/ */ -/* #if 0 */ -/* g_print ("dates changed - removing occurrences\n"); */ -/* #endif */ -/* e_week_view_remove_event_cb (week_view, event_num, NULL); */ - -/* g_object_unref (tmp_comp); */ -/* } else { */ -/* if (rid && e_week_view_find_event_from_uid (week_view, uid, NULL, &event_num)) { */ -/* event = &g_array_index (week_view->events, EWeekViewEvent, event_num); */ -/* if (!e_cal_util_component_is_instance (event->comp_data->icalcomp)) */ -/* e_week_view_remove_event_cb (week_view, event_num, NULL); */ -/* } */ -/* } */ - /* Add the object */ num_days = week_view->multi_week_view ? week_view->weeks_shown * 7 : 7; -- cgit