diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-02-01 22:15:23 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-02-01 22:36:45 +0800 |
commit | ce3d24ef62437762e2e0b930cadb5c00580a4596 (patch) | |
tree | f026863a5fc7adf640ed49e2c45e4b8e0e24b4fe /em-format/e-mail-formatter-secure-button.c | |
parent | 9a0b1266b5686d4985fec8a0dae7fdf00b1b8dd9 (diff) | |
download | gsoc2013-evolution-ce3d24ef62437762e2e0b930cadb5c00580a4596.tar.gz gsoc2013-evolution-ce3d24ef62437762e2e0b930cadb5c00580a4596.tar.zst gsoc2013-evolution-ce3d24ef62437762e2e0b930cadb5c00580a4596.zip |
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.
Diffstat (limited to 'em-format/e-mail-formatter-secure-button.c')
-rw-r--r-- | em-format/e-mail-formatter-secure-button.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/em-format/e-mail-formatter-secure-button.c b/em-format/e-mail-formatter-secure-button.c index 8f66b2ee42..571b90d220 100644 --- a/em-format/e-mail-formatter-secure-button.c +++ b/em-format/e-mail-formatter-secure-button.c @@ -464,6 +464,7 @@ static void e_mail_formatter_secure_button_class_init (EMailFormatterExtensionClass *class) { class->mime_types = formatter_mime_types; + class->priority = G_PRIORITY_LOW; class->format = emfe_secure_button_format; class->get_widget = emfe_secure_button_get_widget; } |