From ce3d24ef62437762e2e0b930cadb5c00580a4596 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 1 Feb 2013 09:15:23 -0500 Subject: Add a priority field for mail formatter and parser extensions. Add a priority field to EMailFormatterExtension and EMailParserExtension class structs. Extension classes can then explicitly specify a priority with respect to other extension classes with the same MIME type, so that the order of extension registration doesn't matter. Priority field defaults to G_PRIORITY_DEFAULT. Built-in formatters and extensions will use G_PRIORITY_LOW. We can get more sophisticated with priority values if we need to, but this should suffice for now. --- em-format/e-mail-parser-application-mbox.c | 1 + 1 file changed, 1 insertion(+) (limited to 'em-format/e-mail-parser-application-mbox.c') diff --git a/em-format/e-mail-parser-application-mbox.c b/em-format/e-mail-parser-application-mbox.c index b0fde83b2e..73c86a7a57 100644 --- a/em-format/e-mail-parser-application-mbox.c +++ b/em-format/e-mail-parser-application-mbox.c @@ -160,6 +160,7 @@ static void e_mail_parser_application_mbox_class_init (EMailParserExtensionClass *class) { class->mime_types = parser_mime_types; + class->priority = G_PRIORITY_LOW; class->flags = E_MAIL_PARSER_EXTENSION_INLINE | E_MAIL_PARSER_EXTENSION_COMPOUND_TYPE; -- cgit v1.2.3