# HG changeset patch # User nadvornik # Date 1207855662 0 # Node ID 8cecb9695d28dbc894a25939d3ba52826a562624 # Parent bda275cf98215fd8c41ba4572befa1ac4788c829 fixed dates in pan-calendar diff -r bda275cf9821 -r 8cecb9695d28 src/pan-calendar.c --- a/src/pan-calendar.c Thu Apr 10 12:07:34 2008 +0000 +++ b/src/pan-calendar.c Thu Apr 10 19:27:42 2008 +0000 @@ -321,10 +321,17 @@ PanItem *pi_day; gint dx, dy; gint n = 0; + char fake_path[20]; dt = pan_date_to_time(year, month, day); - - fd = file_data_new_simple(""); + + /* + * Create a FileData entry that represents the given day. + * It does not correspond to any real file + */ + + g_snprintf(fake_path, sizeof(fake_path), "//%04d-%02d-%02d", year, month, day); + fd = file_data_new_simple(fake_path); 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,