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-formatter-print-headers.c | 1 + 1 file changed, 1 insertion(+) (limited to 'em-format/e-mail-formatter-print-headers.c') diff --git a/em-format/e-mail-formatter-print-headers.c b/em-format/e-mail-formatter-print-headers.c index c3f683f6b3..fb19559e49 100644 --- a/em-format/e-mail-formatter-print-headers.c +++ b/em-format/e-mail-formatter-print-headers.c @@ -209,6 +209,7 @@ static void e_mail_formatter_print_headers_class_init (EMailFormatterExtensionClass *class) { class->mime_types = formatter_mime_types; + class->priority = G_PRIORITY_LOW; class->format = emfpe_headers_format; } -- cgit