aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-config.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-15 22:42:11 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-08-15 23:56:26 +0800
commit7b7aee279438d47bb840982e1f526b4c8d912801 (patch)
treea72c5979bcf15a32c87f7e03100277c2c1eae9f3 /mail/em-config.c
parent079db2baea7b3a9261e7c8b795608b36ea5261ec (diff)
downloadgsoc2013-evolution-7b7aee279438d47bb840982e1f526b4c8d912801.tar
gsoc2013-evolution-7b7aee279438d47bb840982e1f526b4c8d912801.tar.gz
gsoc2013-evolution-7b7aee279438d47bb840982e1f526b4c8d912801.tar.bz2
gsoc2013-evolution-7b7aee279438d47bb840982e1f526b4c8d912801.tar.lz
gsoc2013-evolution-7b7aee279438d47bb840982e1f526b4c8d912801.tar.xz
gsoc2013-evolution-7b7aee279438d47bb840982e1f526b4c8d912801.tar.zst
gsoc2013-evolution-7b7aee279438d47bb840982e1f526b4c8d912801.zip
EMConfigTargetAccount: Add CamelSettings member.
Allows plugins to manipulate a CamelSettings instance directly. The settings are written back to the URL string (for now) when the user clicks Apply in the mail account editor.
Diffstat (limited to 'mail/em-config.c')
-rw-r--r--mail/em-config.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/mail/em-config.c b/mail/em-config.c
index bad3d92c47..fbde5d5430 100644
--- a/mail/em-config.c
+++ b/mail/em-config.c
@@ -133,6 +133,8 @@ em_config_target_free (EConfig *ep,
g_object_unref (s->original_account);
if (s->modified_account != NULL)
g_object_unref (s->modified_account);
+ if (s->settings != NULL)
+ g_object_unref (s->settings);
break; }
}
@@ -206,7 +208,8 @@ em_config_target_new_prefs (EMConfig *emp,
EMConfigTargetAccount *
em_config_target_new_account (EMConfig *emp,
EAccount *original_account,
- EAccount *modified_account)
+ EAccount *modified_account,
+ CamelSettings *settings)
{
EMConfigTargetAccount *t;
@@ -223,5 +226,10 @@ em_config_target_new_account (EMConfig *emp,
else
t->modified_account = NULL;
+ if (settings != NULL)
+ t->settings = g_object_ref (settings);
+ else
+ t->settings = NULL;
+
return t;
}