aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/print.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-07-17 09:34:49 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-07-17 09:34:49 +0800
commit65f2e3d2a3de395977fbd39af0baac0b61504ee5 (patch)
treeca20ac10a7083865305fd7dcfa15fd3b050950ce /calendar/gui/print.c
parent3b8e07c5b87acbda0f09155aa30bf9cc5e0ae8fc (diff)
downloadgsoc2013-evolution-65f2e3d2a3de395977fbd39af0baac0b61504ee5.tar
gsoc2013-evolution-65f2e3d2a3de395977fbd39af0baac0b61504ee5.tar.gz
gsoc2013-evolution-65f2e3d2a3de395977fbd39af0baac0b61504ee5.tar.bz2
gsoc2013-evolution-65f2e3d2a3de395977fbd39af0baac0b61504ee5.tar.lz
gsoc2013-evolution-65f2e3d2a3de395977fbd39af0baac0b61504ee5.tar.xz
gsoc2013-evolution-65f2e3d2a3de395977fbd39af0baac0b61504ee5.tar.zst
gsoc2013-evolution-65f2e3d2a3de395977fbd39af0baac0b61504ee5.zip
try to use builtin timezones before getting them from the server. When
2001-07-16 Damon Chaplin <damon@ximian.com> * gui/dialogs/task-page.c (task_page_fill_widgets): * gui/dialogs/event-page.c (event_page_fill_widgets): try to use builtin timezones before getting them from the server. When creating new events/tasks the timezones may not be on the server. * gui/dialogs/event-page.c (event_page_fill_widgets): for all-day events we subtract a day from the end date rather than add it. * gui/dialogs/e-timezone-dialog.c (on_map_leave): ignore the event if it isn't a GDK_CROSSING_NORMAL event. For some reason we are getting leave events when the button is pressed, which meant that selecting timezones in the map didn't work. * gui/dialogs/comp-editor-util.c (comp_editor_dates): * gui/print.c (print_date_label): only free icaltimetype if not NULL. svn path=/trunk/; revision=11144
Diffstat (limited to 'calendar/gui/print.c')
-rw-r--r--calendar/gui/print.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index 9a290fdf09..fcf3bcecfe 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -2102,9 +2102,10 @@ print_date_label (GnomePrintContext *pc, CalComponent *comp,
cal_component_free_datetime (&datetime);
cal_component_get_completed (comp, &datetime.value);
- if (datetime.value)
+ if (datetime.value) {
complete = icaltime_as_timet_with_zone (*datetime.value, zone);
- cal_component_free_icaltimetype (datetime.value);
+ cal_component_free_icaltimetype (datetime.value);
+ }
buffer[0] = '\0';