diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-12-08 01:44:32 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-12-08 03:01:05 +0800 |
commit | c10235e6dd09d93fc6bbdeb8ef4d800be7c6f6d5 (patch) | |
tree | 458a2e3b37312d69627c7385eed5562da013f4a5 /em-format/e-mail-parser-message-rfc822.c | |
parent | cab6eac8f14974ea1c2fedaf9143e98cf630c489 (diff) | |
download | gsoc2013-evolution-c10235e6dd09d93fc6bbdeb8ef4d800be7c6f6d5.tar.gz gsoc2013-evolution-c10235e6dd09d93fc6bbdeb8ef4d800be7c6f6d5.tar.zst gsoc2013-evolution-c10235e6dd09d93fc6bbdeb8ef4d800be7c6f6d5.zip |
EMailParserExtension: Convert get_flags() to an enum field.
Of the parser extensions that override get_flags(), they all return a
fixed set of flags. So we don't need an instance of the extension to
obtain its flags. Just make it an EMailParserExtensionFlags field in
the class structure.
Diffstat (limited to 'em-format/e-mail-parser-message-rfc822.c')
-rw-r--r-- | em-format/e-mail-parser-message-rfc822.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/em-format/e-mail-parser-message-rfc822.c b/em-format/e-mail-parser-message-rfc822.c index d2cd7ee7fe..5239c3c743 100644 --- a/em-format/e-mail-parser-message-rfc822.c +++ b/em-format/e-mail-parser-message-rfc822.c @@ -123,19 +123,14 @@ empe_msg_rfc822_parse (EMailParserExtension *extension, return TRUE; } -static guint32 -empe_msg_rfc822_get_flags (EMailParserExtension *extension) -{ - return E_MAIL_PARSER_EXTENSION_INLINE | - E_MAIL_PARSER_EXTENSION_COMPOUND_TYPE; -} - static void e_mail_parser_message_rfc822_class_init (EMailParserExtensionClass *class) { class->mime_types = parser_mime_types; + class->flags = + E_MAIL_PARSER_EXTENSION_INLINE | + E_MAIL_PARSER_EXTENSION_COMPOUND_TYPE; class->parse = empe_msg_rfc822_parse; - class->get_flags = empe_msg_rfc822_get_flags; } static void |