aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-18 08:48:28 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-18 08:48:28 +0800
commit48654b3b283080f5e639b2cb3cb208cbaf38b224 (patch)
treeecec09bd9b75e0a23241cb7215e352168e0cee9e
parent05475e093830d72354f8974fe7473e31c2e2bfcc (diff)
downloadgsoc2013-evolution-48654b3b283080f5e639b2cb3cb208cbaf38b224.tar.gz
gsoc2013-evolution-48654b3b283080f5e639b2cb3cb208cbaf38b224.tar.zst
gsoc2013-evolution-48654b3b283080f5e639b2cb3cb208cbaf38b224.zip
Setup the auto-receive here instead.
2001-07-17 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (mail_delete): Setup the auto-receive here instead. * mail-config.c (mail_config_remove_account): Don't setup the auto-recv here. svn path=/trunk/; revision=11188
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/mail-accounts.c4
-rw-r--r--mail/mail-config.c1
3 files changed, 11 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index d37e398fe1..baa59db66d 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2001-07-17 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-accounts.c (mail_delete): Setup the auto-receive here
+ instead.
+
+ * mail-config.c (mail_config_remove_account): Don't setup the
+ auto-recv here.
+
2001-07-17 Iain Holmes <iain@ximian.com>
* mail-accounts.c (mail_able): Reset the auto receive.
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c
index c84094ab9b..e47f7651e7 100644
--- a/mail/mail-accounts.c
+++ b/mail/mail-accounts.c
@@ -42,6 +42,7 @@
#ifdef ENABLE_NNTP
#include "mail-account-editor-news.h"
#endif
+#include "mail-send-recv.h"
#include "mail-session.h"
static void mail_accounts_dialog_class_init (MailAccountsDialogClass *class);
@@ -302,6 +303,7 @@ mail_delete (GtkButton *button, gpointer data)
/* remove it from the config file */
dialog->accounts = mail_config_remove_account (account);
mail_config_write ();
+ mail_autoreceive_setup ();
gtk_clist_remove (dialog->mail_accounts, sel);
@@ -773,7 +775,7 @@ construct (MailAccountsDialog *dialog)
gtk_signal_connect (GTK_OBJECT (dialog->citation_color), "color_set",
GTK_SIGNAL_FUNC (citation_color_set), dialog);
- dialog->timeout_toggle = GTK_SPIN_BUTTON (glade_xml_get_widget (gui, "checkMarkTimeout"));
+ dialog->timeout_toggle = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "checkMarkTimeout"));
gtk_toggle_button_set_active (dialog->timeout_toggle, mail_config_get_do_seen_timeout ());
gtk_signal_connect (GTK_OBJECT (dialog->timeout_toggle), "toggled",
GTK_SIGNAL_FUNC (timeout_toggled), dialog);
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 0dcb25596f..204ed35bd3 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -1362,7 +1362,6 @@ mail_config_remove_account (MailConfigAccount *account)
config->accounts = g_slist_remove (config->accounts, account);
account_destroy (account);
- mail_autoreceive_setup ();
return config->accounts;
}