aboutsummaryrefslogtreecommitdiffstats
path: root/modules/vcard-inline/e-mail-parser-vcard-inline.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-08 01:44:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-08 03:01:05 +0800
commitc10235e6dd09d93fc6bbdeb8ef4d800be7c6f6d5 (patch)
tree458a2e3b37312d69627c7385eed5562da013f4a5 /modules/vcard-inline/e-mail-parser-vcard-inline.c
parentcab6eac8f14974ea1c2fedaf9143e98cf630c489 (diff)
downloadgsoc2013-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 'modules/vcard-inline/e-mail-parser-vcard-inline.c')
-rw-r--r--modules/vcard-inline/e-mail-parser-vcard-inline.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/vcard-inline/e-mail-parser-vcard-inline.c b/modules/vcard-inline/e-mail-parser-vcard-inline.c
index 1328e5031a..67f357440b 100644
--- a/modules/vcard-inline/e-mail-parser-vcard-inline.c
+++ b/modules/vcard-inline/e-mail-parser-vcard-inline.c
@@ -369,18 +369,12 @@ empe_vcard_inline_parse (EMailParserExtension *extension,
return TRUE;
}
-static guint32
-empe_vcard_inline_get_flags (EMailParserExtension *extension)
-{
- return E_MAIL_PARSER_EXTENSION_INLINE_DISPOSITION;
-}
-
static void
e_mail_parser_vcard_inline_class_init (EMailParserExtensionClass *class)
{
class->mime_types = parser_mime_types;
+ class->flags = E_MAIL_PARSER_EXTENSION_INLINE_DISPOSITION;
class->parse = empe_vcard_inline_parse;
- class->get_flags = empe_vcard_inline_get_flags;
}
static void