diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-09-06 04:20:09 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-09-06 04:20:09 +0800 |
commit | 43851a4f3d9506725161f8ced6db31d2d79e2046 (patch) | |
tree | c4ef742c8982b0a1ccac78ff89b0c7772a3d6dec | |
parent | 2e91dd59bf9615fd871eb237fc938158b37e0ac8 (diff) | |
download | gsoc2013-evolution-43851a4f3d9506725161f8ced6db31d2d79e2046.tar gsoc2013-evolution-43851a4f3d9506725161f8ced6db31d2d79e2046.tar.gz gsoc2013-evolution-43851a4f3d9506725161f8ced6db31d2d79e2046.tar.bz2 gsoc2013-evolution-43851a4f3d9506725161f8ced6db31d2d79e2046.tar.lz gsoc2013-evolution-43851a4f3d9506725161f8ced6db31d2d79e2046.tar.xz gsoc2013-evolution-43851a4f3d9506725161f8ced6db31d2d79e2046.tar.zst gsoc2013-evolution-43851a4f3d9506725161f8ced6db31d2d79e2046.zip |
Append the exdate to the list AFTER we create the date value.
2000-09-05 JP Rosevear <jpr@helixcode.com>
* gui/e-day-view.c (e_day_view_on_delete_occurrence): Append
the exdate to the list AFTER we create the date value.
svn path=/trunk/; revision=5204
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/gui/e-day-view.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 9437353ddb..0fbbdf3f4f 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,10 @@ 2000-09-05 JP Rosevear <jpr@helixcode.com> + * gui/e-day-view.c (e_day_view_on_delete_occurrence): Append + the exdate to the list AFTER we create the date value. + +2000-09-05 JP Rosevear <jpr@helixcode.com> + * cal-util/cal-component.c (cal_component_free_recur_list): Free the data, not the list element. diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 6377779497..af15a79798 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -2626,7 +2626,7 @@ e_day_view_on_delete_occurrence (GtkWidget *widget, gpointer data) EDayView *day_view; EDayViewEvent *event; CalComponent *comp; - CalComponentDateTime *date=NULL; + CalComponentDateTime *date; GSList *list; day_view = E_DAY_VIEW (data); @@ -2639,10 +2639,10 @@ e_day_view_on_delete_occurrence (GtkWidget *widget, gpointer data) when we get the "update_event" callback. */ comp = cal_component_clone (event->comp); cal_component_get_exdate_list (comp, &list); - list = g_slist_append (list, date); date = g_new0 (CalComponentDateTime, 1); date->value = g_new (struct icaltimetype, 1); - *date->value = icaltime_from_timet (event->start, FALSE, FALSE); + *date->value = icaltime_from_timet (event->start, TRUE, FALSE); + list = g_slist_append (list, date); cal_component_set_exdate_list (comp, list); cal_component_free_exdate_list (list); |