diff options
author | Chris Toshok <toshok@helixcode.com> | 2001-01-17 07:18:17 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-01-17 07:18:17 +0800 |
commit | 281420328953182128ecf03cbe2f771c75028e40 (patch) | |
tree | c3504d4deee36fddab63f5eba48ad78397fb214f /mail/mail-accounts.c | |
parent | d9287d3d323bc577b62ede013a47e4e39379b9a0 (diff) | |
download | gsoc2013-evolution-281420328953182128ecf03cbe2f771c75028e40.tar gsoc2013-evolution-281420328953182128ecf03cbe2f771c75028e40.tar.gz gsoc2013-evolution-281420328953182128ecf03cbe2f771c75028e40.tar.bz2 gsoc2013-evolution-281420328953182128ecf03cbe2f771c75028e40.tar.lz gsoc2013-evolution-281420328953182128ecf03cbe2f771c75028e40.tar.xz gsoc2013-evolution-281420328953182128ecf03cbe2f771c75028e40.tar.zst gsoc2013-evolution-281420328953182128ecf03cbe2f771c75028e40.zip |
only load the news storage if ENABLE_NNTP.
2001-01-16 Chris Toshok <toshok@helixcode.com>
* component-factory.c (owner_set_cb): only load the news storage
if ENABLE_NNTP.
* mail-accounts.c (construct): if !ENABLE_NNTP, remove the news
page from the dialog.
svn path=/trunk/; revision=7550
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r-- | mail/mail-accounts.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index 29353fea63..a5baecdc2f 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -361,6 +361,7 @@ construct (MailAccountsDialog *dialog) gtk_signal_connect (GTK_OBJECT (dialog->mail_default), "clicked", GTK_SIGNAL_FUNC (mail_default), dialog); +#if defined (ENABLE_NNTP) dialog->news_accounts = GTK_CLIST (glade_xml_get_widget (gui, "clistAccounts")); gtk_signal_connect (GTK_OBJECT (dialog->news_accounts), "select-row", GTK_SIGNAL_FUNC (news_select), dialog); @@ -375,6 +376,10 @@ construct (MailAccountsDialog *dialog) dialog->news_delete = GTK_BUTTON (glade_xml_get_widget (gui, "cmdNewsDelete")); gtk_signal_connect (GTK_OBJECT (dialog->news_delete), "clicked", GTK_SIGNAL_FUNC (news_delete), dialog); +#else + /* remove the news tab since we don't support nntp */ + gtk_notebook_remove_page (GTK_NOTEBOOK (notebook), 1); +#endif /* now to fill in the clists */ dialog->accounts_row = -1; |