evolution r35276 - trunk/mail



Author: mbarnes
Date: Thu Mar 27 17:20:21 2008
New Revision: 35276
URL: http://svn.gnome.org/viewvc/evolution?rev=35276&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:
   trunk/mail/ChangeLog
   trunk/mail/em-popup.c

Modified: trunk/mail/em-popup.c
==============================================================================
--- trunk/mail/em-popup.c	(original)
+++ trunk/mail/em-popup.c	Thu Mar 27 17:20:21 2008
@@ -788,6 +788,12 @@
 	}
 
 	if (mime_type) {
+                gchar *cp;
+
+                /* GNOME-VFS expects lowercase MIME types. */
+                for (cp = mime_type; *cp != '\0'; 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]