comparison src/layout_image.c @ 144:2310066cc55a

fixed preloading images in file list
author nadvornik
date Mon, 22 Oct 2007 19:58:47 +0000
parents 71e1ebee420e
children 2c534c7c8c1f
comparison
equal deleted inserted replaced
143:0d1bf3ac6cd8 144:2310066cc55a
1165 1165
1166 void layout_image_set_with_ahead(LayoutWindow *lw, FileData *fd, FileData *read_ahead_fd) 1166 void layout_image_set_with_ahead(LayoutWindow *lw, FileData *fd, FileData *read_ahead_fd)
1167 { 1167 {
1168 if (!layout_valid(&lw)) return; 1168 if (!layout_valid(&lw)) return;
1169 1169
1170 /* if (path) 1170 /*
1171 This should be handled at the caller: in vflist_select_image
1172 if (path)
1171 { 1173 {
1172 const gchar *old_path; 1174 const gchar *old_path;
1173 1175
1174 old_path = layout_image_get_path(lw); 1176 old_path = layout_image_get_path(lw);
1175 if (old_path && strcmp(path, old_path) == 0) return; 1177 if (old_path && strcmp(path, old_path) == 0) return;