changeset 291:09a676f57a3d

fixed crash in pan_calendar
author nadvornik
date Wed, 09 Apr 2008 21:14:50 +0000
parents 4bbde8a38ad4
children d9625c2a085c
files src/pan-calendar.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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,