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-attachment-bar.c | 1 + 1 file changed, 1 insertion(+) (limited to 'em-format/e-mail-formatter-attachment-bar.c') diff --git a/em-format/e-mail-formatter-attachment-bar.c b/em-format/e-mail-formatter-attachment-bar.c index 4591501331..f91500ed1d 100644 --- a/em-format/e-mail-formatter-attachment-bar.c +++ b/em-format/e-mail-formatter-attachment-bar.c @@ -102,6 +102,7 @@ static void e_mail_formatter_attachment_bar_class_init (EMailFormatterExtensionClass *class) { class->mime_types = formatter_mime_types; + class->priority = G_PRIORITY_LOW; class->format = emfe_attachment_bar_format; class->get_widget = emfe_attachment_bar_get_widget; } -- cgit v1.2.3