From 5ce421aecb9210e2e494b0503ffd986836373138 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 27 Mar 2008 17:20:21 +0000 Subject: ** Fixes bug #523271 2008-03-27 Matthew Barnes ** 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(). svn path=/trunk/; revision=35276 --- mail/ChangeLog | 8 ++++++++ mail/em-popup.c | 6 ++++++ 2 files changed, 14 insertions(+) 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 + + ** 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 ** 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) { -- cgit