diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-09-03 02:14:48 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-09-03 02:14:48 +0800 |
commit | 8c122d342656c0cad8babf4cb26796256b636fb4 (patch) | |
tree | a8f16a3cd8f25904f4bd8e619913be4860719613 /plugins/prefer-plain | |
parent | a2aa3b3fb019f6178724127db9afea1d794714db (diff) | |
download | gsoc2013-evolution-8c122d342656c0cad8babf4cb26796256b636fb4.tar.gz gsoc2013-evolution-8c122d342656c0cad8babf4cb26796256b636fb4.tar.zst gsoc2013-evolution-8c122d342656c0cad8babf4cb26796256b636fb4.zip |
** Fix for bug #431459
svn path=/trunk/; revision=34155
Diffstat (limited to 'plugins/prefer-plain')
-rw-r--r-- | plugins/prefer-plain/ChangeLog | 6 | ||||
-rw-r--r-- | plugins/prefer-plain/prefer-plain.c | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/plugins/prefer-plain/ChangeLog b/plugins/prefer-plain/ChangeLog index 3c16d88af2..b8afd4f25c 100644 --- a/plugins/prefer-plain/ChangeLog +++ b/plugins/prefer-plain/ChangeLog @@ -1,3 +1,9 @@ +2007-08-27 Srinivasa Ragavan <sragavan@novell.com> + + ** Fix for bug #431459 + + * prefer-plain.c: (e_plugin_lib_enable): Avoid reentrancy. + 2007-08-16 Milan Crha <mcrha@redhat.com> ** Part of fix for bug #350539 diff --git a/plugins/prefer-plain/prefer-plain.c b/plugins/prefer-plain/prefer-plain.c index 7d967db839..fb580d279c 100644 --- a/plugins/prefer-plain/prefer-plain.c +++ b/plugins/prefer-plain/prefer-plain.c @@ -35,8 +35,8 @@ enum { EPP_TEXT }; -static GConfClient *epp_gconf; -static int epp_mode; +static GConfClient *epp_gconf = NULL; +static int epp_mode = -1; void org_gnome_prefer_plain_text_html(void *ep, EMFormatHookTarget *t) @@ -167,6 +167,9 @@ e_plugin_lib_enable(EPluginLib *ep, int enable) char *key; int i; + if (epp_gconf || epp_mode != -1) + return; + if (enable) { epp_gconf = gconf_client_get_default(); key = gconf_client_get_string(epp_gconf, "/apps/evolution/eplugin/prefer_plain/mode", NULL); |