diff options
author | Vivek Jain <jvivek@novell.com> | 2005-10-26 18:25:42 +0800 |
---|---|---|
committer | Jain Vivek <jvivek@src.gnome.org> | 2005-10-26 18:25:42 +0800 |
commit | eec09a3e6b0f364fbe1db4c0915dad8df4acb875 (patch) | |
tree | e436a38fb8ec1d4aa9e84fe2db9c666437bbdbed /mail | |
parent | c38f4954e131417f113a239831518d14ab5709fc (diff) | |
download | gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar.gz gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar.bz2 gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar.lz gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar.xz gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar.zst gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.zip |
**See #313096
2005-10-26 Vivek Jain <jvivek@novell.com>
**See #313096
* em-junk-hook.c: (emjh_construct)
load the plugin only if it is enabled.
svn path=/trunk/; revision=30567
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/em-junk-hook.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 3da985747d..d7ad209c6b 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2005-10-26 Vivek Jain <jvivek@novell.com> + + **See #313096 + + * em-junk-hook.c: (emjh_construct) + load the plugin only if it is enabled. + 2005-10-22 Parthasarathi Susarla <sparthasarathi@novell.com> * mail-config.c: (mail_config_get_default_account): diff --git a/mail/em-junk-hook.c b/mail/em-junk-hook.c index af61459f4d..b02bc4cb59 100644 --- a/mail/em-junk-hook.c +++ b/mail/em-junk-hook.c @@ -249,8 +249,8 @@ emjh_construct(EPluginHook *eph, EPlugin *ep, xmlNodePtr root) if (((EPluginHookClass *)emjh_parent_class)->construct(eph, ep, root) == -1) return -1; - if (loaded) { - g_warning ("Can't load multiple plugins to this hook:ignored"); + if (!ep->enabled || loaded) { + g_warning ("ignored this junk plugin: not enabled or we have already loaded one"); return -1; } |