diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2008-03-28 01:20:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-03-28 01:20:21 +0800 |
commit | 5ce421aecb9210e2e494b0503ffd986836373138 (patch) | |
tree | 2dc332b0eae9f0fd462a822ac2dc07bb8793da7c | |
parent | 660c728dcca85bb4f0f1533ae9fb26d0bf0f1b8a (diff) | |
download | gsoc2013-evolution-5ce421aecb9210e2e494b0503ffd986836373138.tar.gz gsoc2013-evolution-5ce421aecb9210e2e494b0503ffd986836373138.tar.zst gsoc2013-evolution-5ce421aecb9210e2e494b0503ffd986836373138.zip |
** Fixes bug #523271
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().
svn path=/trunk/; revision=35276
-rw-r--r-- | mail/ChangeLog | 8 | ||||
-rw-r--r-- | mail/em-popup.c | 6 |
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) { |