aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-06-04 13:00:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-06-04 13:00:00 +0800
commit71bc52621fb9d845388ec47c98f26a6997e92c80 (patch)
tree7c984b1f53d86540204cf2adb09336ffba266888 /mail
parentea7ed64281ae50761f1e4b84a467d52ad4a022d4 (diff)
downloadgsoc2013-evolution-71bc52621fb9d845388ec47c98f26a6997e92c80.tar
gsoc2013-evolution-71bc52621fb9d845388ec47c98f26a6997e92c80.tar.gz
gsoc2013-evolution-71bc52621fb9d845388ec47c98f26a6997e92c80.tar.bz2
gsoc2013-evolution-71bc52621fb9d845388ec47c98f26a6997e92c80.tar.lz
gsoc2013-evolution-71bc52621fb9d845388ec47c98f26a6997e92c80.tar.xz
gsoc2013-evolution-71bc52621fb9d845388ec47c98f26a6997e92c80.tar.zst
gsoc2013-evolution-71bc52621fb9d845388ec47c98f26a6997e92c80.zip
Write the signature after the account has been added. (sig_new_html):
2002-06-04 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Write the signature after the account has been added. (sig_new_html): Don't write the signatures at this time. (sig_new_text): Same. svn path=/trunk/; revision=17096
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/mail-account-gui.c25
2 files changed, 16 insertions, 16 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 98fa38a442..5071f1608a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2002-06-04 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-account-gui.c (mail_account_gui_save): Write the signature
+ after the account has been added.
+ (sig_new_html): Don't write the signatures at this time.
+ (sig_new_text): Same.
+
2002-06-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (account_delete_clicked): Correctly get the
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c
index 2e980e3d79..71f72e4269 100644
--- a/mail/mail-account-gui.c
+++ b/mail/mail-account-gui.c
@@ -334,7 +334,7 @@ mail_account_gui_transport_complete (MailAccountGui *gui, GtkWidget **incomplete
*incomplete = GTK_WIDGET (gui->transport.type);
return FALSE;
}
-
+
if (!service_complete (&gui->transport, NULL, incomplete))
return FALSE;
@@ -467,7 +467,7 @@ source_type_changed (GtkWidget *widget, gpointer user_data)
CamelProvider *provider;
provider = gtk_object_get_data (GTK_OBJECT (widget), "provider");
-
+
/* If the previously-selected provider has a linked transport,
* disable it.
*/
@@ -1318,17 +1318,6 @@ sig_switch_to_list (GtkWidget *w, MailAccountGui *gui)
}
static void
-sig_set_and_write (MailAccountGui *gui)
-{
- gui->account->id->text_signature = gui->text_signature;
- gui->account->id->text_random = gui->text_random;
- gui->account->id->html_signature = gui->html_signature;
- gui->account->id->html_random = gui->html_random;
-
- mail_config_write_account_sig (gui->account, -1);
-}
-
-static void
sig_new_text (GtkWidget *w, MailAccountGui *gui)
{
if (!gui->dialog)
@@ -1341,7 +1330,6 @@ sig_new_text (GtkWidget *w, MailAccountGui *gui)
gtk_option_menu_set_history (GTK_OPTION_MENU (gui->sig_option_text), sig_get_index (gui->text_signature));
- sig_set_and_write (gui);
gtk_widget_set_sensitive (gui->sig_edit_text, TRUE);
}
@@ -1358,7 +1346,6 @@ sig_new_html (GtkWidget *w, MailAccountGui *gui)
gtk_option_menu_set_history (GTK_OPTION_MENU (gui->sig_option_html), sig_get_index (gui->html_signature));
- sig_set_and_write (gui);
gtk_widget_set_sensitive (gui->sig_edit_html, TRUE);
}
@@ -2005,7 +1992,11 @@ mail_account_gui_save (MailAccountGui *gui)
account->id->reply_to = e_utf8_gtk_entry_get_text (gui->reply_to);
account->id->organization = e_utf8_gtk_entry_get_text (gui->organization);
- sig_set_and_write (gui);
+ /* signatures */
+ account->id->text_signature = gui->text_signature;
+ account->id->text_random = gui->text_random;
+ account->id->html_signature = gui->html_signature;
+ account->id->html_random = gui->html_random;
old_enabled = account->source && account->source->enabled;
service_destroy (account->source);
@@ -2085,6 +2076,8 @@ mail_account_gui_save (MailAccountGui *gui)
if (gtk_toggle_button_get_active (gui->default_account))
mail_config_set_default_account (account);
+ mail_config_write_account_sig (account, -1);
+
mail_autoreceive_setup ();
return TRUE;