evolution r35277 - branches/gnome-2-22/mail



Author: mbarnes
Date: Thu Mar 27 17:24:49 2008
New Revision: 35277
URL: http://svn.gnome.org/viewvc/evolution?rev=35277&view=rev

Log:
2008-03-27  Matthew Barnes  <mbarnes redhat com>

	** Fixes bug #523271

	* mail/em-popup.c (emp_standard_menu_factory):
	Lowercase the MIME type before passing it to
	gnome_vfs_mime_get_all_applications().



Modified:
   branches/gnome-2-22/mail/ChangeLog
   branches/gnome-2-22/mail/em-popup.c

Modified: branches/gnome-2-22/mail/em-popup.c
==============================================================================
--- branches/gnome-2-22/mail/em-popup.c	(original)
+++ branches/gnome-2-22/mail/em-popup.c	Thu Mar 27 17:24:49 2008
@@ -753,6 +753,12 @@
 	}
 
 	if (mime_type) {
+                gchar *cp;
+
+                /* GNOME-VFS expects lowercase MIME types. */
+                for (cp = mime_type; *cp != NULL; cp++)
+                        *cp = g_ascii_tolower (*cp);
+
 		apps = gnome_vfs_mime_get_all_applications(mime_type);
 
 		if (apps == NULL && strcmp(mime_type, "application/octet-stream") == 0) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]