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-enriched.c | 1 + 1 file changed, 1 insertion(+) (limited to 'em-format/e-mail-formatter-quote-text-enriched.c') diff --git a/em-format/e-mail-formatter-quote-text-enriched.c b/em-format/e-mail-formatter-quote-text-enriched.c index 031cc664db..b279d96c8a 100644 --- a/em-format/e-mail-formatter-quote-text-enriched.c +++ b/em-format/e-mail-formatter-quote-text-enriched.c @@ -88,6 +88,7 @@ e_mail_formatter_quote_text_enriched_class_init (EMailFormatterExtensionClass *c class->display_name = _("Richtext"); class->description = _("Display part as enriched text"); class->mime_types = formatter_mime_types; + class->priority = G_PRIORITY_LOW; class->format = emqfe_text_enriched_format; } -- cgit