diff options
author | Dan Winship <danw@src.gnome.org> | 2001-07-10 00:37:04 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-07-10 00:37:04 +0800 |
commit | a9c8e8d5946c6c39c4d07b96ed04a414e67bd9cb (patch) | |
tree | 534a4d807849cde75857ba095446b695a7a61fbb /mail/mail-format.c | |
parent | 08879c382da0f592c9521ade17ccb2f0f8d9597d (diff) | |
download | gsoc2013-evolution-a9c8e8d5946c6c39c4d07b96ed04a414e67bd9cb.tar.gz gsoc2013-evolution-a9c8e8d5946c6c39c4d07b96ed04a414e67bd9cb.tar.zst gsoc2013-evolution-a9c8e8d5946c6c39c4d07b96ed04a414e67bd9cb.zip |
Use gnome_vfs_mime_get_short_list_applications rather than
* mail-format.c (mail_lookup_handler): Use
gnome_vfs_mime_get_short_list_applications rather than
gnome_vfs_mime_get_default_application.
* mail-display.c (pixmap_press): Construct the EPopupMenu array on
the fly, based on the number of applications available to open the
MIME type.
(launch_cb): Figure out which menu item was clicked, and invoke
the appropriate application. Ugh, messy, because of the EPopupMenu
interface. Probably should get rewritten some day. Also, make this
handle apps with expects_uris set too.
svn path=/trunk/; revision=10916
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r-- | mail/mail-format.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c index 517d0b7595..e9291e7bf5 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -395,8 +395,8 @@ mail_lookup_handler (const char *mime_type) * register it. */ handler = g_new0 (MailMimeHandler, 1); - handler->application = - gnome_vfs_mime_get_default_application (mime_type); + handler->applications = + gnome_vfs_mime_get_short_list_applications (mime_type); handler->builtin = g_hash_table_lookup (mime_function_table, mime_type); @@ -439,7 +439,7 @@ mail_lookup_handler (const char *mime_type) } /* If we at least got an application, use that. */ - if (handler->application) { + if (handler->applications) { handler->generic = TRUE; goto reg; } |