Mercurial > geeqie
comparison src/thumb.c @ 1036:ab24c46aa6e4
load thumbnails with lower priority
TODO: maybe implement an exception for visible thumbnails
author | nadvornik |
---|---|
date | Wed, 03 Sep 2008 21:54:49 +0000 |
parents | fe82830ab8fd |
children | 5fc64d6252e7 |
comparison
equal
deleted
inserted
replaced
1035:04a8e8a26fff | 1036:ab24c46aa6e4 |
---|---|
271 { | 271 { |
272 FileData *fd = file_data_new_simple(path); | 272 FileData *fd = file_data_new_simple(path); |
273 image_loader_free(tl->il); | 273 image_loader_free(tl->il); |
274 tl->il = image_loader_new(fd); | 274 tl->il = image_loader_new(fd); |
275 file_data_unref(fd); | 275 file_data_unref(fd); |
276 image_loader_set_priority(tl->il, G_PRIORITY_LOW); | |
276 | 277 |
277 if (options->thumbnails.fast) | 278 if (options->thumbnails.fast) |
278 { | 279 { |
279 /* this will speed up jpegs by up to 3x in some cases */ | 280 /* this will speed up jpegs by up to 3x in some cases */ |
280 image_loader_set_requested_size(tl->il, tl->max_w, tl->max_h); | 281 image_loader_set_requested_size(tl->il, tl->max_w, tl->max_h); |