aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-03 03:34:56 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:05 +0800
commit9a149f3ab61a08a5943d57045fad59cd894ba7a5 (patch)
tree6c58cb78005adefd76786ca84a6ae7ceca97085a /mail/em-account-editor.c
parent70978d2f7f5d9ce0f049fd200d960d1c140719a9 (diff)
downloadgsoc2013-evolution-9a149f3ab61a08a5943d57045fad59cd894ba7a5.tar
gsoc2013-evolution-9a149f3ab61a08a5943d57045fad59cd894ba7a5.tar.gz
gsoc2013-evolution-9a149f3ab61a08a5943d57045fad59cd894ba7a5.tar.bz2
gsoc2013-evolution-9a149f3ab61a08a5943d57045fad59cd894ba7a5.tar.lz
gsoc2013-evolution-9a149f3ab61a08a5943d57045fad59cd894ba7a5.tar.xz
gsoc2013-evolution-9a149f3ab61a08a5943d57045fad59cd894ba7a5.tar.zst
gsoc2013-evolution-9a149f3ab61a08a5943d57045fad59cd894ba7a5.zip
EMConfigTargetAccount: Add original_account member.
Rename the existing 'account' member to 'modified_account' and add an 'original_account' member so plugins have direct access to both. Mostly of benefit to the imap-features plugin.
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r--mail/em-account-editor.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index a0083ecee4..e720fb81ed 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -3885,10 +3885,13 @@ set_provider_defaults_on_url (EMAccountEditor *emae, CamelProvider *provider, Ca
}
static void
-em_account_editor_construct (EMAccountEditor *emae, EMAccountEditorType type, const gchar *id)
+em_account_editor_construct (EMAccountEditor *emae,
+ EMAccountEditorType type,
+ const gchar *id)
{
EMAccountEditorPrivate *priv = emae->priv;
- EAccount *account;
+ EAccount *original_account;
+ EAccount *modified_account;
gint i, index;
GSList *l;
GList *prov;
@@ -3976,8 +3979,10 @@ em_account_editor_construct (EMAccountEditor *emae, EMAccountEditorType type, co
e_config_add_page_check ((EConfig *)ec, NULL, emae_check_complete, emae);
- account = em_account_editor_get_modified_account (emae);
- target = em_config_target_new_account (ec, account);
+ original_account = em_account_editor_get_original_account (emae);
+ modified_account = em_account_editor_get_modified_account (emae);
+ target = em_config_target_new_account (
+ ec, original_account, modified_account);
e_config_set_target ((EConfig *)ec, (EConfigTarget *)target);
}