aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-mailer-prefs.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-09-07 15:51:47 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-09-07 15:51:47 +0800
commite0965ab239c03af7a2bec82b1d39bb5f085e6e23 (patch)
tree946eee9f7cb4090de265afd449d3dc8e9bf8fe62 /mail/em-mailer-prefs.c
parent9841d5bfd279d7f8540f2035fb0fa5b6eddb4138 (diff)
downloadgsoc2013-evolution-e0965ab239c03af7a2bec82b1d39bb5f085e6e23.tar.gz
gsoc2013-evolution-e0965ab239c03af7a2bec82b1d39bb5f085e6e23.tar.zst
gsoc2013-evolution-e0965ab239c03af7a2bec82b1d39bb5f085e6e23.zip
2007-09-07 mcrha Fix for bug #473903
svn path=/trunk/; revision=34192
Diffstat (limited to 'mail/em-mailer-prefs.c')
-rw-r--r--mail/em-mailer-prefs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/em-mailer-prefs.c b/mail/em-mailer-prefs.c
index 1951b79ea2..a8f64a5728 100644
--- a/mail/em-mailer-prefs.c
+++ b/mail/em-mailer-prefs.c
@@ -779,8 +779,10 @@ junk_plugin_changed (GtkWidget *combo, EMMailerPrefs *prefs)
struct _EMJunkHookItem *item = plugins->data;;
if (item->plugin_name && def_plugin && !strcmp (item->plugin_name, def_plugin)) {
+ gboolean status;
+
session->junk_plugin = CAMEL_JUNK_PLUGIN (&(item->csp));
- void *status = e_plugin_invoke(item->hook->hook.plugin, item->validate_binary, NULL);
+ status = e_plugin_invoke (item->hook->hook.plugin, item->validate_binary, NULL) != NULL;
if ((gboolean)status == TRUE) {
char *text, *html;
gtk_image_set_from_stock (prefs->plugin_image, "gtk-dialog-info", GTK_ICON_SIZE_MENU);
@@ -833,7 +835,7 @@ junk_plugin_setup (GtkWidget *combo, EMMailerPrefs *prefs)
def_set = TRUE;
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), index);
- status = (gboolean)e_plugin_invoke(item->hook->hook.plugin, item->validate_binary, NULL);
+ status = e_plugin_invoke (item->hook->hook.plugin, item->validate_binary, NULL) != NULL;
if (status) {
char *text, *html;
gtk_image_set_from_stock (prefs->plugin_image, "gtk-dialog-info", GTK_ICON_SIZE_MENU);