Mercurial > geeqie
diff src/cache.c @ 318:b16b9b8979e5
Add a new struct ConfOptions to handle options.
Changes were made among the code to use only one global var
named "options" of type ConfOptions *.
Initialization takes place in new init_options().
author | zas_ |
---|---|
date | Fri, 11 Apr 2008 22:14:36 +0000 |
parents | e213fb025621 |
children | 767b53cd9ab7 |
line wrap: on
line diff
--- a/src/cache.c Fri Apr 11 20:35:37 2008 +0000 +++ b/src/cache.c Fri Apr 11 22:14:36 2008 +0000 @@ -660,8 +660,8 @@ cache_ext = NULL; } - if (((type != CACHE_TYPE_METADATA && enable_thumb_dirs) || - (type == CACHE_TYPE_METADATA && enable_metadata_dirs)) && + if (((type != CACHE_TYPE_METADATA && options->enable_thumb_dirs) || + (type == CACHE_TYPE_METADATA && options->enable_metadata_dirs)) && access_file(base, W_OK)) { path = g_strconcat(base, "/", cache_local, name, cache_ext, NULL); @@ -699,11 +699,11 @@ if (type == CACHE_TYPE_METADATA) { - prefer_local = enable_metadata_dirs; + prefer_local = options->enable_metadata_dirs; } else { - prefer_local = enable_thumb_dirs; + prefer_local = options->enable_thumb_dirs; } if (prefer_local)