diff options
author | Vivek Jain <jvivek@novell.com> | 2005-10-03 16:53:24 +0800 |
---|---|---|
committer | Jain Vivek <jvivek@src.gnome.org> | 2005-10-03 16:53:24 +0800 |
commit | 059ed8df224d10a94d3c9e9f4d9001bb8ed59a3d (patch) | |
tree | 17445d98c5e7465f4a0e0890b3c72dc45b0fc2db /plugins/sa-junk-plugin | |
parent | 7a102381acf224110cfe32fcc0905a103268abde (diff) | |
download | gsoc2013-evolution-059ed8df224d10a94d3c9e9f4d9001bb8ed59a3d.tar.gz gsoc2013-evolution-059ed8df224d10a94d3c9e9f4d9001bb8ed59a3d.tar.zst gsoc2013-evolution-059ed8df224d10a94d3c9e9f4d9001bb8ed59a3d.zip |
added (e_plugin_lib_enable) calls init here to initialize all settings
2005-10-03 Vivek Jain <jvivek@novell.com>
* em-junk-filter.c: added (e_plugin_lib_enable)
calls init here to initialize all settings
**Fixes #317792
unref GConfClient in finalize
svn path=/trunk/; revision=30468
Diffstat (limited to 'plugins/sa-junk-plugin')
-rw-r--r-- | plugins/sa-junk-plugin/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/sa-junk-plugin/em-junk-filter.c | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/plugins/sa-junk-plugin/ChangeLog b/plugins/sa-junk-plugin/ChangeLog index 549b8d8678..cb32b8cbdd 100644 --- a/plugins/sa-junk-plugin/ChangeLog +++ b/plugins/sa-junk-plugin/ChangeLog @@ -1,3 +1,10 @@ +2005-10-03 Vivek Jain <jvivek@novell.com> + + * em-junk-filter.c: added (e_plugin_lib_enable) + calls init here to initialize all settings + **Fixes #317792 + unref GConfClient in finalize + 2005-08-23 Not Zed <NotZed@Ximian.com> * em-junk-filter.c (em_junk_sa_report_non_junk): pre-define. diff --git a/plugins/sa-junk-plugin/em-junk-filter.c b/plugins/sa-junk-plugin/em-junk-filter.c index 770ee46849..0e7b29469f 100644 --- a/plugins/sa-junk-plugin/em-junk-filter.c +++ b/plugins/sa-junk-plugin/em-junk-filter.c @@ -56,6 +56,7 @@ static pthread_mutex_t em_junk_sa_report_lock = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t em_junk_sa_preferred_socket_path_lock = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t em_junk_sa_spamd_restart_lock = PTHREAD_MUTEX_INITIALIZER; +int e_plugin_lib_enable (EPluginLib *ep, int enable); static const char *em_junk_sa_get_name (void); gboolean em_junk_sa_check_junk (EPlugin *ep, EMJunkHookTarget *target); void em_junk_sa_report_junk (EPlugin *ep, EMJunkHookTarget *target); @@ -687,6 +688,14 @@ em_junk_sa_setting_notify(GConfClient *gconf, guint cnxn_id, GConfEntry *entry, } } +int +e_plugin_lib_enable (EPluginLib *ep, int enable) +{ + em_junk_sa_init(); + + return 0; +} + static void em_junk_sa_init (void) { @@ -756,5 +765,6 @@ em_junk_sa_finalize (void) { d(fprintf (stderr, "em_junk_sa_finalize\n")); + g_object_unref(em_junk_sa_gconf); em_junk_sa_kill_spamd (); } |