comparison src/filefilter.c @ 1809:e1c18f81e637

Add unknown file class to grouping
author mow
date Sun, 28 Feb 2010 22:55:37 +0000
parents 956aab097ea7
children
comparison
equal deleted inserted replaced
1808:6c61c246506b 1809:e1c18f81e637
281 ext = g_strndup(b, l); 281 ext = g_strndup(b, l);
282 282
283 if (g_ascii_strcasecmp(ext, "%image") == 0) file_class = FORMAT_CLASS_IMAGE; 283 if (g_ascii_strcasecmp(ext, "%image") == 0) file_class = FORMAT_CLASS_IMAGE;
284 else if (g_ascii_strcasecmp(ext, "%raw") == 0) file_class = FORMAT_CLASS_RAWIMAGE; 284 else if (g_ascii_strcasecmp(ext, "%raw") == 0) file_class = FORMAT_CLASS_RAWIMAGE;
285 else if (g_ascii_strcasecmp(ext, "%meta") == 0) file_class = FORMAT_CLASS_META; 285 else if (g_ascii_strcasecmp(ext, "%meta") == 0) file_class = FORMAT_CLASS_META;
286 else if (g_ascii_strcasecmp(ext, "%unknown") == 0) file_class = FORMAT_CLASS_UNKNOWN;
286 287
287 if (file_class == -1) 288 if (file_class == -1)
288 { 289 {
289 list = g_list_append(list, ext); 290 list = g_list_append(list, ext);
290 } 291 }