aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/em-popup.c6
2 files changed, 14 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index a8beaf91ee..d6f4e66f3e 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2008-03-27 Matthew Barnes <mbarnes@redhat.com>
+
+ ** Fixes bug #523271
+
+ * em-popup.c (emp_standard_menu_factory):
+ Lowercase the MIME type before passing it to
+ gnome_vfs_mime_get_all_applications().
+
2008-03-27 Milan Crha <mcrha@redhat.com>
** Fix for bug #522178
diff --git a/mail/em-popup.c b/mail/em-popup.c
index d44d206414..0ee4fdae5d 100644
--- a/mail/em-popup.c
+++ b/mail/em-popup.c
@@ -788,6 +788,12 @@ emp_standard_menu_factory(EPopup *emp, void *data)
}
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) {