diff pidgin/gtkimhtml.c @ 17828:abc4dcd25c50

Compare the user-entered file extension to the GDK file extension case-insensitively. So if a user types "example.JPG" when saving a direct IM image, it'll save it as a jpeg and not fallback to saving it as a png because it doesn't recognize JPG as a valid file type. Another change that fixes #914
author Mark Doliner <mark@kingant.net>
date Sun, 10 Jun 2007 22:22:36 +0000
parents 43961a41237a
children d40fd7106ebf 40d51793f2d7 fb0b82b40f98
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Sun Jun 10 21:58:45 2007 +0000
+++ b/pidgin/gtkimhtml.c	Sun Jun 10 22:22:36 2007 +0000
@@ -3188,7 +3188,7 @@
 			gchar *fmt_ext = extensions[0];
 			const gchar* file_ext = filename + strlen(filename) - strlen(fmt_ext);
 
-			if(!strcmp(fmt_ext, file_ext)){
+			if(!g_ascii_strcasecmp(fmt_ext, file_ext)){
 				type = gdk_pixbuf_format_get_name(format);
 				break;
 			}