Mercurial > geeqie.yaz
changeset 301:8cecb9695d28
fixed dates in pan-calendar
author | nadvornik |
---|---|
date | Thu, 10 Apr 2008 19:27:42 +0000 |
parents | bda275cf9821 |
children | c1f75ee307ec |
files | src/pan-calendar.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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,