aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
antw44/cgit/freebsd-ports-gnome/commit/russian?h=dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8&id=77c133d40ff3508e7ef48bd87659f8e2f69b61a5'>Remove Author from pkg-descr and white space fixesbapt2015-03-033-4/+0 * - Update to 4.3.6.jkim2015-02-211-4/+4 * Unbreak on headantoine2015-02-154-46/+13 * - Bump PORTREVISION. lzarus has been updatedacm2015-01-111-5/+28 * - Update to 5.2.11sunpoet2015-01-0217-199/+1 * - Update to 4.1wen2014-12-212-4/+3 * cleanup plistbapt2014-12-213-3/+0 * Update to 4.3.5.jkim2014-12-191-4/+4 * Update to 4.3.4.jkim2014-11-271-4/+4 * Change the way Perl modules are installed, update the default Perl to 5.18.mat2014-11-2612-10/+11 * - Drop dirrm* from plistsamdmi32014-11-227-24/+0 * Upgrade to 4.0.1.vanilla2014-11-222-4/+4 * Fix the generation of Fontmap.diff, which I broke earlier, when trying tomi2014-11-191-11/+10 * Cleanup plistantoine2014-11-1217-87/+3 * Update to 4.3.3.jkim2014-11-011-4/+4 * Cross-platform emulator of Elektronika RPN programmable calculatoramdmi32014-10-294-0/+51 * KDE/FreeBSD team presents KDE SC 4.14.2 and KDE Workspace 4.11.13!makc2014-10-193-172/+32 * Update to 4.3.2.jkim2014-10-172-5/+4 * Add missing dependencies and CPE data.des2014-10-151-1/+8 * Update the default version of GCC in the Ports Collection from GCC 4.7.4gerald2014-09-114-2/+4 * eric4 ports: update to version 4.5.24.bsam2014-09-101-2/+2 * - Update to 4.0sunpoet2014-09-062-3/+3 * Change MAINTAINER to bz-ports@ as discussed with bugzilla@ (now bz-ports@)flo2014-09-061-1/+1 * Allow staging as a regular userantoine2014-09-061-0/+1 * Remove non staged ports without pending PR from russianbapt2014-09-0232-1215/+0 * More unzip removalantoine2014-08-181-1/+0 * Upgrade OpenEXR and ilmbase to 2.2.0.mandree2014-08-162-1/+2 * Merge 4 unzip slave ports into archivers/unzip as non-default optionsmarino2014-08-152-93/+0 * russian/wordpress: update to 3.9.2wg2014-08-092-3/+3 * Mark BROKEN: fails to installantoine2014-08-091-0/+2 * www/MT, russian/MT: Upgrade version 5.2.9 => 5.2.10marino2014-08-0417-1/+200 * Convert some more USE_BZIP2 to USES=tar:bzip2adamw2014-07-305-5/+5 * russian/xcode:makc2014-07-291-3/+4 * Reset maintainership for ports not staged with no pending PRbapt2014-07-254-4/+4 * Fix build with texlivebapt2014-07-221-1/+1 * Remove indefinite articles and trailing periods from COMMENT, plusolgeni2014-07-172-2/+2 * remove NO_STAGE.vanilla2014-07-071-1/+0 * Update to version 4.5.23.bsam2014-06-301-2/+2 * - Stage supportmiwi2014-06-281