# HG changeset patch # User nadvornik # Date 1207775690 0 # Node ID 09a676f57a3d03d4483e6b7c9a2c3de72e394407 # Parent 4bbde8a38ad46dfaab7e6f11579c6331ec3ce21d fixed crash in pan_calendar diff -r 4bbde8a38ad4 -r 09a676f57a3d src/pan-calendar.c --- a/src/pan-calendar.c Wed Apr 09 20:49:32 2008 +0000 +++ b/src/pan-calendar.c Wed Apr 09 21:14:50 2008 +0000 @@ -324,10 +324,7 @@ dt = pan_date_to_time(year, month, day); - fd = g_new0(FileData, 1); - /* path and name must be non NULL, so make them an invalid filename */ - fd->path = g_strdup("//"); - fd->name = path; + fd = file_data_new_simple(""); fd->date = dt; pi_day = pan_item_box_new(pw, fd, x, y, PAN_CAL_DAY_WIDTH, PAN_CAL_DAY_HEIGHT, PAN_CAL_DAY_BORDER,