Mercurial > geeqie
diff src/filedata.c @ 1229:878718372aca
sidecar files grouping was made case-insensitive
added possibility to use macros %raw, %image, %meta in extensions lists
author | nadvornik |
---|---|
date | Fri, 02 Jan 2009 09:26:23 +0000 |
parents | 2df7be0cd20b |
children | 254b09942e68 |
line wrap: on
line diff
--- a/src/filedata.c Sat Dec 27 22:53:07 2008 +0000 +++ b/src/filedata.c Fri Jan 02 09:26:23 2009 +0000 @@ -395,7 +395,7 @@ work = work->next; - if (strcmp(ext, fd->extension) == 0) + if (strcasecmp(ext, fd->extension) == 0) { new_fd = fd; /* processing the original file */ } @@ -403,9 +403,8 @@ { struct stat nst; g_string_truncate(fname, base_len); - g_string_append(fname, ext); - if (!stat_utf8(fname->str, &nst)) + if (!stat_utf8_case_insensitive_ext(fname, ext, &nst)) continue; new_fd = file_data_new(fname->str, &nst, FALSE); @@ -730,7 +729,7 @@ gchar *ext = work->data; work = work->next; - if (strcmp(extension, ext) == 0) return i; + if (strcasecmp(extension, ext) == 0) return i; i++; } return 0;