diff options
author | Matthew Loper <mloper@src.gnome.org> | 2000-02-09 16:36:29 +0800 |
---|---|---|
committer | Matthew Loper <mloper@src.gnome.org> | 2000-02-09 16:36:29 +0800 |
commit | a56ab5213877f040f31db0696a1a60bd066772ed (patch) | |
tree | 47c5f75549e2ec794bbd6c437a9032fccea0d65b /camel | |
parent | ca082de77aec8542e913e1ce374dd849f51a4a27 (diff) | |
download | gsoc2013-evolution-a56ab5213877f040f31db0696a1a60bd066772ed.tar gsoc2013-evolution-a56ab5213877f040f31db0696a1a60bd066772ed.tar.gz gsoc2013-evolution-a56ab5213877f040f31db0696a1a60bd066772ed.tar.bz2 gsoc2013-evolution-a56ab5213877f040f31db0696a1a60bd066772ed.tar.lz gsoc2013-evolution-a56ab5213877f040f31db0696a1a60bd066772ed.tar.xz gsoc2013-evolution-a56ab5213877f040f31db0696a1a60bd066772ed.tar.zst gsoc2013-evolution-a56ab5213877f040f31db0696a1a60bd066772ed.zip |
New file; shows a message in tree format, where multipart's have multiple
* tests/ui-tests/message-browser.c: New file; shows a message in
tree format, where multipart's have multiple leaves.
* camel/camel-formatter.c: Changed references from
'multipart/alternate' to 'multipart/alternative'.
svn path=/trunk/; revision=1700
Diffstat (limited to 'camel')
-rw-r--r-- | camel/camel-formatter.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/camel/camel-formatter.c b/camel/camel-formatter.c index 91a47af01e..49776243ff 100644 --- a/camel/camel-formatter.c +++ b/camel/camel-formatter.c @@ -49,24 +49,24 @@ * 'call_handler_function()' to continue the process recursively. */ -static void handle_text_plain (CamelFormatter *formatter, - CamelDataWrapper *wrapper); -static void handle_text_html (CamelFormatter *formatter, - CamelDataWrapper *wrapper); -static void handle_image (CamelFormatter *formatter, - CamelDataWrapper *wrapper); -static void handle_vcard (CamelFormatter *formatter, - CamelDataWrapper *wrapper); -static void handle_mime_message (CamelFormatter *formatter, - CamelDataWrapper *wrapper); -static void handle_multipart_mixed (CamelFormatter *formatter, - CamelDataWrapper *wrapper); -static void handle_multipart_related (CamelFormatter *formatter, - CamelDataWrapper *wrapper); -static void handle_multipart_alternate(CamelFormatter *formatter, - CamelDataWrapper *wrapper); -static void handle_unknown_type (CamelFormatter *formatter, - CamelDataWrapper *wrapper); +static void handle_text_plain (CamelFormatter *formatter, + CamelDataWrapper *wrapper); +static void handle_text_html (CamelFormatter *formatter, + CamelDataWrapper *wrapper); +static void handle_image (CamelFormatter *formatter, + CamelDataWrapper *wrapper); +static void handle_vcard (CamelFormatter *formatter, + CamelDataWrapper *wrapper); +static void handle_mime_message (CamelFormatter *formatter, + CamelDataWrapper *wrapper); +static void handle_multipart_mixed (CamelFormatter *formatter, + CamelDataWrapper *wrapper); +static void handle_multipart_related (CamelFormatter *formatter, + CamelDataWrapper *wrapper); +static void handle_multipart_alternative(CamelFormatter *formatter, + CamelDataWrapper *wrapper); +static void handle_unknown_type (CamelFormatter *formatter, + CamelDataWrapper *wrapper); /* encodes some characters into their 'escaped' version; * so '<' turns into '<', and '"' turns into '"' */ @@ -743,7 +743,7 @@ handle_multipart_related (CamelFormatter *formatter, } /* - The current policy for multipart/alternate is this: + The current policy for multipart/alternative is this: if (we find a text/html body part) we print it @@ -753,13 +753,13 @@ handle_multipart_related (CamelFormatter *formatter, we print nothing */ static void -handle_multipart_alternate (CamelFormatter *formatter, +handle_multipart_alternative (CamelFormatter *formatter, CamelDataWrapper *wrapper) { CamelMultipart* multipart = CAMEL_MULTIPART (wrapper); CamelMimePart* mime_part; - debug ("handle_multipart_alternate: entered\n"); + debug ("handle_multipart_alternative: entered\n"); mime_part = find_preferred_displayable_body_part_in_multipart_alternative( multipart); @@ -773,7 +773,7 @@ handle_multipart_alternate (CamelFormatter *formatter, MIME_TYPE_MAIN (mime_part)); } - debug ("handle_multipart_alternate: exiting\n"); + debug ("handle_multipart_alternative: exiting\n"); } static void @@ -834,7 +834,7 @@ camel_formatter_class_init (CamelFormatterClass *camel_formatter_class) /* hook up mime types to functions that handle them */ ADD_HANDLER ("text/plain", handle_text_plain); ADD_HANDLER ("text/html", handle_text_html); - ADD_HANDLER ("multipart/alternate", handle_multipart_alternate); + ADD_HANDLER ("multipart/alternative", handle_multipart_alternative); ADD_HANDLER ("multipart/related", handle_multipart_related); ADD_HANDLER ("multipart/mixed", handle_multipart_mixed); ADD_HANDLER ("message/rfc822", handle_mime_message); |