aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/event-editor.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-08-25 12:05:42 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-08-25 12:05:42 +0800
commit6252ffa2f5708c65bba754f74cda708558d733a7 (patch)
tree63e984687c95ab8fa08e2715600d487f68370e95 /calendar/gui/event-editor.c
parent38387de2ea45b04b07414e0c8d6c8f03b39a5461 (diff)
downloadgsoc2013-evolution-6252ffa2f5708c65bba754f74cda708558d733a7.tar
gsoc2013-evolution-6252ffa2f5708c65bba754f74cda708558d733a7.tar.gz
gsoc2013-evolution-6252ffa2f5708c65bba754f74cda708558d733a7.tar.bz2
gsoc2013-evolution-6252ffa2f5708c65bba754f74cda708558d733a7.tar.lz
gsoc2013-evolution-6252ffa2f5708c65bba754f74cda708558d733a7.tar.xz
gsoc2013-evolution-6252ffa2f5708c65bba754f74cda708558d733a7.tar.zst
gsoc2013-evolution-6252ffa2f5708c65bba754f74cda708558d733a7.zip
Properly append to list
2000-08-24 JP Rosevear <jpr@helixcode.com> * gui/gncal-todo.c (ok_button): Properly append to list * gui/event-editor.c (dialog_to_comp_object): ditto * gui/e-day-view.c (e_day_view_on_new_appointment): The base times are not UTC * gui/e-week-view.c (e_week_view_on_new_appointment): ditto svn path=/trunk/; revision=5031
Diffstat (limited to 'calendar/gui/event-editor.c')
-rw-r--r--calendar/gui/event-editor.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/calendar/gui/event-editor.c b/calendar/gui/event-editor.c
index 6f8a3a9154..7aa737b395 100644
--- a/calendar/gui/event-editor.c
+++ b/calendar/gui/event-editor.c
@@ -929,12 +929,12 @@ dialog_to_comp_object (EventEditor *ee)
CalComponent *comp;
CalComponentText *text;
CalComponentDateTime date;
- time_t t;
struct icalrecurrencetype *recur;
+ time_t t;
gboolean all_day_event;
- int i, pos = 0;
GtkCList *exception_list;
- GSList *list = NULL;
+ GSList *list;
+ int i, pos = 0;
priv = ee->priv;
comp = priv->comp;
@@ -943,11 +943,11 @@ dialog_to_comp_object (EventEditor *ee)
text->value = e_dialog_editable_get (priv->general_summary);
cal_component_set_summary (comp, text);
+ list = NULL;
text->value = e_dialog_editable_get (priv->description);
- g_slist_prepend (list, text);
+ list = g_slist_prepend (list, text);
cal_component_set_description_list (comp, list);
cal_component_free_text_list (list);
- list = NULL;
date.value = g_new (struct icaltimetype, 1);
t = e_dialog_dateedit_get (priv->start_time);
@@ -994,6 +994,7 @@ dialog_to_comp_object (EventEditor *ee)
cal_component_set_classification (comp, classification_get (priv->classification_radio));
/* Recurrence information */
+ list = NULL;
recur = g_new (struct icalrecurrencetype, 1);
icalrecurrencetype_clear (recur);
recur->freq = recur_options_get (priv->recurrence_rule_none);
@@ -1070,11 +1071,11 @@ dialog_to_comp_object (EventEditor *ee)
} else if (e_dialog_toggle_get (priv->recurrence_ending_date_end_after)) {
recur->count = e_dialog_spin_get_int (priv->recurrence_ending_date_end_after_count);
}
- g_slist_append (list, recur);
+ list = g_slist_append (list, recur);
cal_component_set_rrule_list (comp, list);
- list = NULL;
/* Get exceptions from clist into ico->exdate */
+ list = NULL;
exception_list = GTK_CLIST (priv->recurrence_exceptions_list);
for (i = 0; i < exception_list->rows; i++) {
struct icaltimetype *tt = g_new (struct icaltimetype, 1);