changeset 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 b1754db7010b 6d3d7ee05b06
files pidgin/gtkimhtml.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
 			}