diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-10-24 22:08:27 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-10-27 21:25:01 +0800 |
commit | c58b70659747967568a536e217b9440424709f92 (patch) | |
tree | 1d730d70de24b72ca0b9d200ad25cf28da3cbd05 /em-format/em-format-quote.c | |
parent | 4bc632c800acd4d8228224bb628f2de38090f550 (diff) | |
download | gsoc2013-evolution-c58b70659747967568a536e217b9440424709f92.tar gsoc2013-evolution-c58b70659747967568a536e217b9440424709f92.tar.gz gsoc2013-evolution-c58b70659747967568a536e217b9440424709f92.tar.bz2 gsoc2013-evolution-c58b70659747967568a536e217b9440424709f92.tar.lz gsoc2013-evolution-c58b70659747967568a536e217b9440424709f92.tar.xz gsoc2013-evolution-c58b70659747967568a536e217b9440424709f92.tar.zst gsoc2013-evolution-c58b70659747967568a536e217b9440424709f92.zip |
Prefer GQueue (or GNode) over EDList.
Diffstat (limited to 'em-format/em-format-quote.c')
-rw-r--r-- | em-format/em-format-quote.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/em-format/em-format-quote.c b/em-format/em-format-quote.c index 4bbe977918..c329769976 100644 --- a/em-format/em-format-quote.c +++ b/em-format/em-format-quote.c @@ -389,7 +389,7 @@ emfq_format_headers (EMFormatQuote *emfq, CamelStream *stream, CamelMedium *part EMFormat *emf = (EMFormat *) emfq; CamelContentType *ct; const gchar *charset; - EMFormatHeader *h; + GList *link; if (!part) return; @@ -399,10 +399,12 @@ emfq_format_headers (EMFormatQuote *emfq, CamelStream *stream, CamelMedium *part charset = camel_iconv_charset_name (charset); /* dump selected headers */ - h = (EMFormatHeader *) emf->header_list.head; - while (h->next) { - emfq_format_header (emf, stream, part, h->name, h->flags, charset); - h = h->next; + link = g_queue_peek_head_link (&emf->header_list); + while (link != NULL) { + EMFormatHeader *h = link->data; + emfq_format_header ( + emf, stream, part, h->name, h->flags, charset); + link = g_list_next (link); } camel_stream_printf(stream, "<br>\n"); |