aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@novell.com>2004-12-23 20:35:40 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-12-23 20:35:40 +0800
commitcd13211f3b7c8ec200313d25ded3b7aa972e4b95 (patch)
tree97b16792ad511ef90766beb5fdeaaa4fd71fc0ca /calendar/gui/e-week-view.c
parent6248ae5265b066c363063ea788564165c5c79f30 (diff)
downloadgsoc2013-evolution-cd13211f3b7c8ec200313d25ded3b7aa972e4b95.tar
gsoc2013-evolution-cd13211f3b7c8ec200313d25ded3b7aa972e4b95.tar.gz
gsoc2013-evolution-cd13211f3b7c8ec200313d25ded3b7aa972e4b95.tar.bz2
gsoc2013-evolution-cd13211f3b7c8ec200313d25ded3b7aa972e4b95.tar.lz
gsoc2013-evolution-cd13211f3b7c8ec200313d25ded3b7aa972e4b95.tar.xz
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-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c78
1 files changed, 38 insertions, 40 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index fb60e67d3f..e552c009d8 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -330,46 +330,44 @@ 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_foreach_event_with_uid (week_view, uid, e_week_view_update_event_cb, comp_data); */
- 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 occurrrences 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);
- }
- }
+/* /\* 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;