aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-08-30 01:00:36 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-08-30 01:00:36 +0800
commit5fadb311e670e53e35c8cfd637c70d57ed497fb1 (patch)
tree3d54a006d768882480123056c42803063d664e38 /calendar/gui/e-week-view.c
parent1ed15f41e77c067d6b47414e3a649c366a030834 (diff)
downloadgsoc2013-evolution-5fadb311e670e53e35c8cfd637c70d57ed497fb1.tar
gsoc2013-evolution-5fadb311e670e53e35c8cfd637c70d57ed497fb1.tar.gz
gsoc2013-evolution-5fadb311e670e53e35c8cfd637c70d57ed497fb1.tar.bz2
gsoc2013-evolution-5fadb311e670e53e35c8cfd637c70d57ed497fb1.tar.lz
gsoc2013-evolution-5fadb311e670e53e35c8cfd637c70d57ed497fb1.tar.xz
gsoc2013-evolution-5fadb311e670e53e35c8cfd637c70d57ed497fb1.tar.zst
gsoc2013-evolution-5fadb311e670e53e35c8cfd637c70d57ed497fb1.zip
Use event_editor_set_event_object
2000-08-29 JP Rosevear <jpr@helixcode.com> * gui/gnome-cal.c (gnome_calendar_edit_object): Use event_editor_set_event_object * gui/event-editor.c (event_editor_set_event_object): Rename from event_editor_set_ical_object * gui/event-editor.h: Update prototype * gui/e-week-view.c (e_week_view_on_new_appointment): Call cal_component_commit_sequence after event changes. Default to these being all day events. svn path=/trunk/; revision=5097
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 4c5eb5d142..ffaaddb3e5 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2757,13 +2757,15 @@ e_week_view_on_new_appointment (GtkWidget *widget, gpointer data)
date.tzid = NULL;
dt = week_view->day_starts[week_view->selection_start_day];
- *date.value = icaltime_from_timet (dt, FALSE, FALSE);
+ *date.value = icaltime_from_timet (dt, TRUE, FALSE);
cal_component_set_dtstart (comp, &date);
dt = week_view->day_starts[week_view->selection_end_day + 1];
- *date.value = icaltime_from_timet (dt, FALSE, FALSE);
+ *date.value = icaltime_from_timet (dt, TRUE, FALSE);
cal_component_set_dtend (comp, &date);
+ cal_component_commit_sequence (comp);
+
gnome_calendar_edit_object (week_view->calendar, comp);
gtk_object_unref (GTK_OBJECT (comp));
}