Mercurial > geeqie.yaz
comparison src/search.c @ 1145:3a7af6a8cd5f
Use functions to return directories instead of constants.
Following functions were added:
get_collections_dir()
get_metadata_cache_dir()
get_rc_dir()
get_thumbnails_cache_dir()
get_trash_dir()
They return the full directory path.
author | zas_ |
---|---|
date | Sat, 15 Nov 2008 17:30:45 +0000 |
parents | 577d726e32f0 |
children | 95860439070b |
comparison
equal
deleted
inserted
replaced
1144:5fe3b8b3a612 | 1145:3a7af6a8cd5f |
---|---|
2217 g_free(path); | 2217 g_free(path); |
2218 } | 2218 } |
2219 else if (sd->search_type == SEARCH_MATCH_ALL) | 2219 else if (sd->search_type == SEARCH_MATCH_ALL) |
2220 { | 2220 { |
2221 /* search metadata */ | 2221 /* search metadata */ |
2222 path = g_build_filename(homedir(), GQ_CACHE_RC_METADATA, NULL); | |
2223 | |
2224 file_data_unref(sd->search_dir_fd); | 2222 file_data_unref(sd->search_dir_fd); |
2225 sd->search_dir_fd = file_data_new_simple(path); | 2223 sd->search_dir_fd = file_data_new_simple(get_metadata_cache_dir()); |
2226 g_free(path); | |
2227 | |
2228 search_start(sd); | 2224 search_start(sd); |
2229 } | 2225 } |
2230 else if (sd->search_type == SEARCH_MATCH_CONTAINS) | 2226 else if (sd->search_type == SEARCH_MATCH_CONTAINS) |
2231 { | 2227 { |
2232 /* search current result list */ | 2228 /* search current result list */ |