Mercurial > geeqie
comparison src/search.c @ 1011:616b14da08c2
do not access image_loader directly
author | nadvornik |
---|---|
date | Fri, 29 Aug 2008 12:35:13 +0000 |
parents | c74c4e87a682 |
children | fe82830ab8fd |
comparison
equal
deleted
inserted
replaced
1010:82fe98d2cfdb | 1011:616b14da08c2 |
---|---|
1516 cache_sim_data_set_similarity(cd, sim); | 1516 cache_sim_data_set_similarity(cd, sim); |
1517 image_sim_free(sim); | 1517 image_sim_free(sim); |
1518 } | 1518 } |
1519 | 1519 |
1520 if (options->thumbnails.enable_caching && | 1520 if (options->thumbnails.enable_caching && |
1521 sd->img_loader && sd->img_loader->fd) | 1521 sd->img_loader && image_loader_get_fd(sd->img_loader)) |
1522 { | 1522 { |
1523 gchar *base; | 1523 gchar *base; |
1524 const gchar *path; | 1524 const gchar *path; |
1525 mode_t mode = 0755; | 1525 mode_t mode = 0755; |
1526 | 1526 |
1527 path = sd->img_loader->fd->path; | 1527 path = image_loader_get_fd(sd->img_loader)->path; |
1528 base = cache_get_location(CACHE_TYPE_SIM, path, FALSE, &mode); | 1528 base = cache_get_location(CACHE_TYPE_SIM, path, FALSE, &mode); |
1529 if (cache_ensure_dir_exists(base, mode)) | 1529 if (cache_ensure_dir_exists(base, mode)) |
1530 { | 1530 { |
1531 g_free(cd->path); | 1531 g_free(cd->path); |
1532 cd->path = cache_get_location(CACHE_TYPE_SIM, path, TRUE, NULL); | 1532 cd->path = cache_get_location(CACHE_TYPE_SIM, path, TRUE, NULL); |
1533 if (cache_sim_data_save(cd)) | 1533 if (cache_sim_data_save(cd)) |
1534 { | 1534 { |
1535 filetime_set(cd->path, filetime(sd->img_loader->fd->path)); | 1535 filetime_set(cd->path, filetime(image_loader_get_fd(sd->img_loader)->path)); |
1536 } | 1536 } |
1537 } | 1537 } |
1538 g_free(base); | 1538 g_free(base); |
1539 } | 1539 } |
1540 } | 1540 } |