aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2001-01-09 14:20:18 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-09 14:20:18 +0800
commitdc5ef3b9a4c72a24d09f4612f6822298808703f8 (patch)
tree37e2c7ebcd676b148e5e37cf1962d613a6cc543f /mail
parenta2d998fe1391733fa472f2c142891d31fd81f958 (diff)
downloadgsoc2013-evolution-dc5ef3b9a4c72a24d09f4612f6822298808703f8.tar.gz
gsoc2013-evolution-dc5ef3b9a4c72a24d09f4612f6822298808703f8.tar.zst
gsoc2013-evolution-dc5ef3b9a4c72a24d09f4612f6822298808703f8.zip
Write the config data and reload the accounts list so the "default" tag is
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com> * mail-accounts.c (mail_default): Write the config data and reload the accounts list so the "default" tag is relocated. (mail_delete): Write the config data here too. svn path=/trunk/; revision=7314
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-accounts.c10
2 files changed, 14 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 757a9af399..221a5122f1 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-09 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * mail-accounts.c (mail_default): Write the config data and reload
+ the accounts list so the "default" tag is relocated.
+ (mail_delete): Write the config data here too.
+
2001-01-08 Jeffrey Stedfast <fejj@helixcode.com>
* Makefile.am:
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c
index 6d6d9b9fce..9d0fd7090c 100644
--- a/mail/mail-accounts.c
+++ b/mail/mail-accounts.c
@@ -212,8 +212,10 @@ mail_delete (GtkButton *button, gpointer data)
int row, len;
account = gtk_clist_get_row_data (dialog->mail_accounts, dialog->accounts_row);
- g_list_remove ((GList *)dialog->accounts, account);
+ g_slist_remove ((GSList *) dialog->accounts, account);
account_destroy (account);
+ mail_config_write ();
+
gtk_clist_remove (dialog->mail_accounts, dialog->accounts_row);
len = g_slist_length ((GSList *) dialog->accounts);
@@ -239,6 +241,8 @@ mail_default (GtkButton *button, gpointer data)
if (dialog->accounts_row >= 0) {
account = gtk_clist_get_row_data (dialog->mail_accounts, dialog->accounts_row);
mail_config_set_default_account (account);
+ mail_config_write ();
+ load_accounts (dialog);
}
}
@@ -296,8 +300,10 @@ news_delete (GtkButton *button, gpointer data)
int row, len;
server = gtk_clist_get_row_data (dialog->news_accounts, dialog->news_row);
- g_list_remove ((GList *)dialog->news, server);
+ g_slist_remove ((GSList *) dialog->news, server);
service_destroy (server);
+ mail_config_write ();
+
gtk_clist_remove (dialog->news_accounts, dialog->news_row);
len = g_slist_length ((GSList *) dialog->news);
>4-44/+5 * - The build script is looking for aclocal/automake/autoconf and failingbdrewery2013-07-231-0/+3 * - Since gtkspell uses enchant which supports several spellcheckingtijl2013-07-231-8/+4 * - Update to latest snapshot 201307221453ashish2013-07-237-54/+23 * Update to 2.11.3cs2013-07-202-2/+2 * - Update to 1.1.2swills2013-07-192-11/+7 * www/zend-framework: update to 2.2.1wg2013-07-181-2/+2 * - Unbreak build after autotools updatemiwi2013-07-181-0/+1 * Move GUILE_* options before bsd.options.mk so they can take effect.mandree2013-07-181-4/+4 * Fix GUILE option for "OFF" case (GUILE_CONFIGURE_OFF, rather than a dup' _ON)mandree2013-07-181-1/+1 * Mark DEPRECATED, until some has the time to look after it.mandree2013-07-181-0/+3 * - Return port to ports@, at the maintainers request (private mail inmandree2013-07-182-6/+30 * - Fix plist to keep user configuration files safe.miwi2013-07-172-1/+2 * Horde package update:mm2013-07-1712-22/+18 * Remove now excess verbiage.eadler2013-07-171-2/+0 * Couple of missed patches from recent automake update.ade2013-07-171-0/+10 * - Fix conflict with mail/dovecot2feld2013-07-172-105/+76 * - Unbreak build after autotools updatemiwi2013-07-162-0/+2 * - Fix RUN_DEPENDSgblach2013-07-161-7/+4 * - Update devel/automake to 1.14ade2013-07-161-2/+4 * Add Cyrus man pages to manpath.ume2013-07-163-3/+17 * Add Cyrus man pages to manpath.ume2013-07-163-3/+17 * Trojita is a fast cross-platform Qt IMAP e-mail client.miwi2013-07-155-0/+84 * - Update to 1.8.8miwi2013-07-152-4/+3 * - Update to 5.2.6miwi2013-07-153-121/+20 * - Update to 0.9.2miwi2013-07-152-7/+8 * - Update to 0.4miwi2013-07-154-9/+15 * - Update to latest snapshot 201307121003ashish2013-07-152-3/+4 * mail/thunderbird-dictionaries: Fix extraction phase typomarino2013-07-151-1/+1 * Mark jobs unsafebapt2013-07-131-7/+5 * - Trim Makefile headersamdmi32013-07-121-1/+1 * - Update to 1.5swills2013-07-122-8/+4 * - Update to 2.8.6swills2013-07-122-3/+3 * - Update to 7.31.0sunpoet2013-07-121-1/+1 * Add missing ctype dependency.ale2013-07-111-7/+8 * Mark job unsafebapt2013-07-111-0/+1 * Fix build with nls (was broken because USES was set after pre.mk)bapt2013-07-111-14/+9 * Convert my ports to current standardspawel2013-07-114-81/+39 * Mark as job unsafebapt2013-07-113-10/+7 * Mark job unsafebapt2013-07-111-6/+4 * mail/nullmailer: update to 1.13wg2013-07-102-6/+5 * Mark jobs unsafebapt2013-07-101-0/+1 * Convert from USE_MOTIF to USES=motifbapt2013-07-101-2/+1 * - Drop all my portspav2013-07-103-3/+3 * Convert the ports I maintain to USES=gmake.madpilot2013-07-091-3/+3 * - Convert USE_GMAKE to USES=gmakeehaupt2013-07-09