diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-27 06:18:58 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-27 06:18:58 +0800 |
commit | e0f414941dd4e13ea074996d10606b0dae7e494b (patch) | |
tree | 2ebf55cdd625e82547787f92aaddad4132374a02 /mail/mail-signature-editor.c | |
parent | bc80332460c353e391cd620f2cc51f7b56eef4de (diff) | |
download | gsoc2013-evolution-e0f414941dd4e13ea074996d10606b0dae7e494b.tar gsoc2013-evolution-e0f414941dd4e13ea074996d10606b0dae7e494b.tar.gz gsoc2013-evolution-e0f414941dd4e13ea074996d10606b0dae7e494b.tar.bz2 gsoc2013-evolution-e0f414941dd4e13ea074996d10606b0dae7e494b.tar.lz gsoc2013-evolution-e0f414941dd4e13ea074996d10606b0dae7e494b.tar.xz gsoc2013-evolution-e0f414941dd4e13ea074996d10606b0dae7e494b.tar.zst gsoc2013-evolution-e0f414941dd4e13ea074996d10606b0dae7e494b.zip |
Split EAccountList and ESignatureList management out of the mail module.
This reduces the dependency of the composer on the mail module, which is
currently a circular dependency.
svn path=/branches/kill-bonobo/; revision=37135
Diffstat (limited to 'mail/mail-signature-editor.c')
-rw-r--r-- | mail/mail-signature-editor.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/mail-signature-editor.c b/mail/mail-signature-editor.c index 912182f5ac..511942ca77 100644 --- a/mail/mail-signature-editor.c +++ b/mail/mail-signature-editor.c @@ -27,7 +27,7 @@ #include <glib/gi18n.h> #include <e-util/e-error.h> -#include <e-util/e-signature-list.h> +#include <e-util/e-signature-utils.h> #include <composer/e-msg-composer.h> #include "mail-config.h" @@ -147,7 +147,7 @@ action_save_and_close_cb (GtkAction *action, return; } - signature_list = mail_config_get_signatures (); + signature_list = e_get_signature_list (); signature_name = g_strdup (gtk_entry_get_text (GTK_ENTRY (entry))); g_strstrip (signature_name); @@ -181,8 +181,10 @@ action_save_and_close_cb (GtkAction *action, if (editor->priv->signature != NULL) e_signature_list_change (signature_list, signature); - else - mail_config_add_signature (signature); + else { + e_signature_list_add (signature_list, signature); + e_signature_list_save (signature_list); + } gtk_widget_destroy (GTK_WIDGET (editor)); } |