Mercurial > geeqie.yaz
diff src/rcfile.c @ 226:3c89da4aef95
Fix and simplify thumbnails size combo box related code.
Some variables were unused, code was buggy (spurious entry at
the end of the list). A sanity check for values coming from
rc file was added. Two constants now define the default
thumbnail size.
author | zas_ |
---|---|
date | Thu, 03 Apr 2008 14:35:03 +0000 |
parents | 77f1bcc6c161 |
children | 22ed43d4c849 |
line wrap: on
line diff
--- a/src/rcfile.c Thu Apr 03 13:58:20 2008 +0000 +++ b/src/rcfile.c Thu Apr 03 14:35:03 2008 +0000 @@ -561,8 +561,10 @@ "enable_thumbnails", value, thumbnails_enabled); thumb_max_width = read_int_option(f, option, "thumbnail_width", value, thumb_max_width); + if (thumb_max_width < 16) thumb_max_width = 16; thumb_max_height = read_int_option(f, option, "thumbnail_height", value, thumb_max_height); + if (thumb_max_height < 16) thumb_max_height = 16; enable_thumb_caching = read_bool_option(f, option, "cache_thumbnails", value, enable_thumb_caching); enable_thumb_dirs = read_bool_option(f, option,