[Commits] bsfilter_gtk.c 1.1.2.4 1.1.2.5
colin at claws-mail.org
colin at claws-mail.org
Sun Apr 1 20:47:56 CEST 2012
Update of /home/claws-mail/plugins/bsfilter/src
In directory srv:/tmp/cvs-serv15928/src
Modified Files:
Tag: gtk2
bsfilter_gtk.c
Log Message:
2012-04-01 [colin] 1.0.7cvs3
* src/bsfilter_gtk.c
Disable unsupported stuff with new AB
Index: bsfilter_gtk.c
===================================================================
RCS file: /home/claws-mail/plugins/bsfilter/src/Attic/bsfilter_gtk.c,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -d -r1.1.2.4 -r1.1.2.5
--- bsfilter_gtk.c 6 Jan 2012 14:17:10 -0000 1.1.2.4
+++ bsfilter_gtk.c 1 Apr 2012 18:47:54 -0000 1.1.2.5
@@ -75,6 +75,7 @@
}
}
+#ifndef USE_NEW_ADDRBOOK
static void bsfilter_whitelist_ab_select_cb(GtkWidget *widget, gpointer data)
{
struct BsfilterPage *page = (struct BsfilterPage *) data;
@@ -88,6 +89,7 @@
g_free(new_path);
}
}
+#endif
static void bsfilter_create_widget_func(PrefsPage * _page,
GtkWindow * window,
@@ -240,8 +242,12 @@
g_signal_connect(G_OBJECT(save_spam_folder_select), "clicked",
G_CALLBACK(foldersel_cb), save_spam_folder_entry);
+#ifndef USE_NEW_ADDRBOOK
g_signal_connect(G_OBJECT (whitelist_ab_select_btn), "clicked",
G_CALLBACK(bsfilter_whitelist_ab_select_cb), page);
+#else
+ gtk_widget_set_sensitive(whitelist_ab_select_btn, FALSE);
+#endif
gtk_spin_button_set_value(GTK_SPIN_BUTTON(max_size_spinbtn), (float) config->max_size);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(process_emails_checkbtn), config->process_emails);
More information about the Commits
mailing list