From 405cdd1ea2729f05512a3d9052a5683c34f556b1 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 12 Jul 2001 00:57:31 +0000 Subject: Fixes bug #4380 as well as some leftovers from the days of struct tm and 2001-07-11 Federico Mena Quintero Fixes bug #4380 as well as some leftovers from the days of struct tm and some uninitialized values. * gui/gnome-cal.c (gnome_calendar_on_date_navigator_selection_changed): Initialize the icaltimetype structures completely. (gnome_calendar_init): Do not reset priv->zone to NULL here, since it was set by gnome_calendar_update_config_settings() from setup_widgets(). * gui/calendar-model.c (set_completed): Do not set is_daylight. * gui/e-day-view.c (e_day_view_convert_grid_position_to_time): Likewise. * gui/e-week-view.c (e_week_view_set_timezone): Likewise. * cal-util/cal-recur.c (generate_instances_for_chunk): Likewise, and initialize start_tt and end_tt completely. * cal-util/timeutil.c (time_year_begin_with_zone): Likewise. (time_month_begin_with_zone): Likewise. (time_week_begin_with_zone): Likewise. (time_day_begin_with_zone): Likewise. (time_day_end_with_zone): Likewise. (time_from_isodate): Likewise. * gui/dialogs/task-page.c (task_page_fill_component): Initialize icaltime before using it. * gui/dialogs/event-page.c (event_page_fill_component): Likewise. * gui/dialogs/recurrence-page.c (simple_recur_to_comp): Removed an unused icaltimetype. * gui/dialogs/task-details-page.c (task_details_page_fill_component): Initialize icaltime before using it. svn path=/trunk/; revision=11024 --- calendar/gui/calendar-model.c | 1 - 1 file changed, 1 deletion(-) (limited to 'calendar/gui/calendar-model.c') diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index 10e18b106d..64b19065ff 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -1025,7 +1025,6 @@ set_completed (CalendarModel *model, CalComponent *comp, const char *value) itt.hour = tmp_tm.tm_hour; itt.minute = tmp_tm.tm_min; itt.second = tmp_tm.tm_sec; - itt.is_daylight = -1; /* We assume that COMPLETED is entered in the current timezone, even though it gets stored in UTC. */ -- cgit v1.2.3