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-quote-text-html.c | 1 + 1 file changed, 1 insertion(+) (limited to 'em-format/e-mail-formatter-quote-text-html.c') diff --git a/em-format/e-mail-formatter-quote-text-html.c b/em-format/e-mail-formatter-quote-text-html.c index 71c7d63554..0febedb12a 100644 --- a/em-format/e-mail-formatter-quote-text-html.c +++ b/em-format/e-mail-formatter-quote-text-html.c @@ -90,6 +90,7 @@ e_mail_formatter_quote_text_html_class_init (EMailFormatterExtensionClass *class class->display_name = _("HTML"); class->description = _("Format part as HTML"); class->mime_types = formatter_mime_types; + class->priority = G_PRIORITY_LOW; class->format = emqfe_text_html_format; } -- cgit v1.2.3