diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2004-12-23 20:35:40 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-12-23 20:35:40 +0800 |
commit | cd13211f3b7c8ec200313d25ded3b7aa972e4b95 (patch) | |
tree | 97b16792ad511ef90766beb5fdeaaa4fd71fc0ca /calendar/gui/e-day-view.c | |
parent | 6248ae5265b066c363063ea788564165c5c79f30 (diff) | |
download | gsoc2013-evolution-cd13211f3b7c8ec200313d25ded3b7aa972e4b95.tar.gz gsoc2013-evolution-cd13211f3b7c8ec200313d25ded3b7aa972e4b95.tar.zst gsoc2013-evolution-cd13211f3b7c8ec200313d25ded3b7aa972e4b95.zip |
get instance times using the correct timezone. (redo_queries): emit
2004-12-23 Rodrigo Moya <rodrigo@novell.com>
* 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=28192
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r-- | calendar/gui/e-day-view.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 78f8cfc9b4..89122753eb 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -530,54 +530,6 @@ process_component (EDayView *day_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_day_view_find_event_from_uid (day_view, uid, rid, &day, &event_num)) { - ECalComponent *tmp_comp; - - if (day == E_DAY_VIEW_LONG_EVENT) - event = &g_array_index (day_view->long_events, - EDayViewEvent, event_num); - else - event = &g_array_index (day_view->events[day], - EDayViewEvent, 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_util_component_has_recurrences (comp_data->icalcomp) - && !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_day_view_foreach_event_with_uid (day_view, uid, e_day_view_update_event_cb, comp_data); */ - e_day_view_update_event_cb (day_view, day, event_num, comp_data); - gtk_widget_queue_draw (day_view->top_canvas); - gtk_widget_queue_draw (day_view->main_canvas); - return; - } - - /* The dates have changed, so we need to remove the - old occurrrences before adding the new ones. */ -#if 0 - g_print ("dates changed - removing occurrences\n"); -#endif - e_day_view_remove_event_cb (day_view, day, event_num, NULL); - - g_object_unref (tmp_comp); - } else { - if (rid && e_day_view_find_event_from_uid (day_view, uid, NULL, &day, &event_num)) { - if (day == E_DAY_VIEW_LONG_EVENT) - event = &g_array_index (day_view->long_events, EDayViewEvent, event_num); - else - event = &g_array_index (day_view->events[day], EDayViewEvent, event_num); - - if (!e_cal_util_component_is_instance (event->comp_data->icalcomp)) - e_day_view_remove_event_cb (day_view, day, event_num, NULL); - } - } - /* Add the object */ add_event_data.day_view = day_view; add_event_data.comp_data = comp_data; |