projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64e92b4
)
fixed crash in pan_calendar
author
Vladimir Nadvornik
<nadvornik@suse.cz>
Wed, 9 Apr 2008 21:14:50 +0000
(21:14 +0000)
committer
Vladimir Nadvornik
<nadvornik@suse.cz>
Wed, 9 Apr 2008 21:14:50 +0000
(21:14 +0000)
src/pan-calendar.c
patch
|
blob
|
history
diff --git
a/src/pan-calendar.c
b/src/pan-calendar.c
index
159230f
..
8058d0d
100644
(file)
--- a/
src/pan-calendar.c
+++ b/
src/pan-calendar.c
@@
-324,10
+324,7
@@
void pan_calendar_compute(PanWindow *pw, const gchar *path, gint *width, gint *h
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,