diff src/filefilter.c @ 1307:e8f21b91885d

Glibification again.
author zas_
date Sat, 21 Feb 2009 20:43:35 +0000
parents 8b89e3ff286b
children 55ea4962887a
line wrap: on
line diff
--- a/src/filefilter.c	Sat Feb 21 18:28:53 2009 +0000
+++ b/src/filefilter.c	Sat Feb 21 20:43:35 2009 +0000
@@ -285,9 +285,9 @@
 		
 		ext = g_strndup(b, l);
 		
-		if (strcasecmp(ext, "%image") == 0) file_class = FORMAT_CLASS_IMAGE;
-		else if (strcasecmp(ext, "%raw") == 0) file_class = FORMAT_CLASS_RAWIMAGE;
-		else if (strcasecmp(ext, "%meta") == 0) file_class = FORMAT_CLASS_META;
+		if (g_ascii_strcasecmp(ext, "%image") == 0) file_class = FORMAT_CLASS_IMAGE;
+		else if (g_ascii_strcasecmp(ext, "%raw") == 0) file_class = FORMAT_CLASS_RAWIMAGE;
+		else if (g_ascii_strcasecmp(ext, "%meta") == 0) file_class = FORMAT_CLASS_META;
 		
 		if (file_class == -1) 
 			{
@@ -383,7 +383,7 @@
 		if (ln >= lf)
 			{
 			/* FIXME: utf8 */
-			if (strncasecmp(name + ln - lf, filter, lf) == 0) return TRUE;
+			if (g_ascii_strncasecmp(name + ln - lf, filter, lf) == 0) return TRUE;
 			}
 		work = work->next;
 		}