diff options
Diffstat (limited to 'plugins/bogo-junk-plugin')
-rw-r--r-- | plugins/bogo-junk-plugin/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/bogo-junk-plugin/bf-junk-filter.c | 8 |
2 files changed, 10 insertions, 5 deletions
diff --git a/plugins/bogo-junk-plugin/ChangeLog b/plugins/bogo-junk-plugin/ChangeLog index db92715031..4479eddb61 100644 --- a/plugins/bogo-junk-plugin/ChangeLog +++ b/plugins/bogo-junk-plugin/ChangeLog @@ -1,3 +1,10 @@ +2007-09-07 Milan Crha <mcrha@redhat.com> + + ** Part of fix for bug #473903 + + * bf-junk-filter.c: (em_junk_bf_validate_binary): Changing function + prototype to fit what is expected in 'invoke', returns value based on it. + 2007-08-27 Srinivasa Ragavan <sragavan@novell.com> * bf-junk-filter.c: (e_plugin_lib_enable): Avoid re-entrancy in diff --git a/plugins/bogo-junk-plugin/bf-junk-filter.c b/plugins/bogo-junk-plugin/bf-junk-filter.c index 87c1df28b7..e47e0382d8 100644 --- a/plugins/bogo-junk-plugin/bf-junk-filter.c +++ b/plugins/bogo-junk-plugin/bf-junk-filter.c @@ -60,7 +60,7 @@ GtkWidget * org_gnome_bogo_convert_unicode (struct _EPlugin *epl, struct _EConfi /* plugin fonction prototypes */ gboolean em_junk_bf_check_junk (EPlugin *ep, EMJunkHookTarget *target); -gboolean em_junk_bf_validate_binary (EPlugin *ep, EMJunkHookTarget *target); +void *em_junk_bf_validate_binary (EPlugin *ep, EMJunkHookTarget *target); void em_junk_bf_report_junk (EPlugin *ep, EMJunkHookTarget *target); void em_junk_bf_report_non_junk (EPlugin *ep, EMJunkHookTarget *target); void em_junk_bf_commit_reports (EPlugin *ep, EMJunkHookTarget *target); @@ -244,12 +244,10 @@ em_junk_bf_commit_reports (EPlugin *ep, EMJunkHookTarget *target) { } -gboolean +void * em_junk_bf_validate_binary (EPlugin *ep, EMJunkHookTarget *target) { - - return g_file_test (em_junk_bf_binary, G_FILE_TEST_EXISTS); - + return g_file_test (em_junk_bf_binary, G_FILE_TEST_EXISTS) ? "1" : NULL; } int |