aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.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/e-week-view.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/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 9da2b94c42..4c5eb5d142 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2746,7 +2746,8 @@ e_week_view_on_new_appointment (GtkWidget *widget, gpointer data)
CalComponent *comp;
CalComponentDateTime date;
struct icaltimetype itt;
-
+ time_t dt;
+
week_view = E_WEEK_VIEW (data);
comp = cal_component_new ();
@@ -2755,14 +2756,12 @@ e_week_view_on_new_appointment (GtkWidget *widget, gpointer data)
date.value = &itt;
date.tzid = NULL;
- *date.value =
- icaltime_from_timet (week_view->day_starts[week_view->selection_start_day],
- FALSE, TRUE);
+ dt = week_view->day_starts[week_view->selection_start_day];
+ *date.value = icaltime_from_timet (dt, FALSE, FALSE);
cal_component_set_dtstart (comp, &date);
- *date.value =
- icaltime_from_timet (week_view->day_starts[week_view->selection_end_day + 1],
- FALSE, TRUE);
+ dt = week_view->day_starts[week_view->selection_end_day + 1];
+ *date.value = icaltime_from_timet (dt, FALSE, FALSE);
cal_component_set_dtend (comp, &date);
gnome_calendar_edit_object (week_view->calendar, comp);