From 2c95c4d8e9f237bc2428b05d976d01241d3394ba Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Tue, 3 Jul 2001 06:06:18 +0000 Subject: added virtual method to get a VTIMEZONE component given a TZID. We need 2001-07-03 Damon Chaplin * pcs/cal-backend.[hc]: added virtual method to get a VTIMEZONE component given a TZID. We need this to resolve TZIDs when expanding an event using cal_recur_generate_instances() in query.c. * pcs/cal-backend-file.c (cal_backend_file_get_timezone): implemented virtual method. (cal_backend_file_update_object): fixed bug, kind -> child_kind. * pcs/query.c (func_occur_in_time_range): use the virtual method for resolving TZIDs. The other way didn't work anyway, as we didn't have the entire VCALENDAR with VTIMEZONEs in it. * gui/dialogs/recurrence-page.c (init_widgets): (make_ending_until_special): moved the call to e_date_edit_set_get_time_callback() from init_widgets to make_ending_until_special(), since that is where the widget gets created. * gui/e-timezone-entry.c (e_timezone_entry_set_timezone): handle zone being NULL. svn path=/trunk/; revision=10732 --- calendar/gui/e-timezone-entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/gui/e-timezone-entry.c') diff --git a/calendar/gui/e-timezone-entry.c b/calendar/gui/e-timezone-entry.c index e7e64f0934..2b4f06af6d 100644 --- a/calendar/gui/e-timezone-entry.c +++ b/calendar/gui/e-timezone-entry.c @@ -286,7 +286,7 @@ e_timezone_entry_set_timezone (ETimezoneEntry *tentry, priv->changed = FALSE; gtk_entry_set_text (GTK_ENTRY (priv->entry), - e_timezone_entry_get_display_name (zone)); + zone ? e_timezone_entry_get_display_name (zone) : ""); } -- cgit v1.2.3