aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-accounts.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 5c30c95463..b6a5886277 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2001-03-06 Jeffrey Stedfast <fejj@ximian.com>
+ * mail-accounts.c (construct): Disable the NNTP code if NNTP is
+ not enabled. This prevents some runtime warnings...
+
* mail-config-druid.c: Updated to have a transport auth page.
2001-03-01 Miguel de Icaza <miguel@ximian.com>
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c
index e7bcdaa0e2..33f2bfa18b 100644
--- a/mail/mail-accounts.c
+++ b/mail/mail-accounts.c
@@ -494,7 +494,8 @@ construct (MailAccountsDialog *dialog)
gtk_widget_set_sensitive (GTK_WIDGET (dialog->mail_delete), FALSE);
gtk_widget_set_sensitive (GTK_WIDGET (dialog->mail_default), FALSE);
}
-
+
+#ifdef ENABLE_NNTP
dialog->news_row = -1;
dialog->news = mail_config_get_news ();
if (dialog->news) {
@@ -504,6 +505,7 @@ construct (MailAccountsDialog *dialog)
gtk_widget_set_sensitive (GTK_WIDGET (dialog->news_edit), FALSE);
gtk_widget_set_sensitive (GTK_WIDGET (dialog->news_delete), FALSE);
}
+#endif /* ENABLE_NNTP */
}
MailAccountsDialog *