comparison src/thumb.c @ 138:71e1ebee420e

replaced gchar* path with FileData *fd
author nadvornik
date Tue, 11 Sep 2007 20:06:29 +0000
parents 25335c62cd9b
children f6e307c7bad6
comparison
equal deleted inserted replaced
137:be3328a58875 138:71e1ebee420e
250 } 250 }
251 251
252 static void thumb_loader_setup(ThumbLoader *tl, gchar *path) 252 static void thumb_loader_setup(ThumbLoader *tl, gchar *path)
253 { 253 {
254 image_loader_free(tl->il); 254 image_loader_free(tl->il);
255 tl->il = image_loader_new(path); 255 tl->il = image_loader_new(file_data_new_simple(path));
256 256
257 if (thumbnail_fast) 257 if (thumbnail_fast)
258 { 258 {
259 /* this will speed up jpegs by up to 3x in some cases */ 259 /* this will speed up jpegs by up to 3x in some cases */
260 image_loader_set_requested_size(tl->il, tl->max_w, tl->max_h); 260 image_loader_set_requested_size(tl->il, tl->max_w, tl->max_h);