diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-15 22:42:11 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:50 +0800 |
commit | df7755eff8326759db2afc7ab7cee52863cfb8df (patch) | |
tree | 61ea6a5cc910fc2281398c4dbc66bcfb625ad661 /mail | |
parent | f30ea2184c4983ab05e7409bc7f8c9923a654bb2 (diff) | |
download | gsoc2013-evolution-df7755eff8326759db2afc7ab7cee52863cfb8df.tar.gz gsoc2013-evolution-df7755eff8326759db2afc7ab7cee52863cfb8df.tar.zst gsoc2013-evolution-df7755eff8326759db2afc7ab7cee52863cfb8df.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')
-rw-r--r-- | mail/em-config.c | 10 | ||||
-rw-r--r-- | mail/em-config.h | 4 |
2 files changed, 12 insertions, 2 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; } diff --git a/mail/em-config.h b/mail/em-config.h index 24b062c7f5..0291f2446a 100644 --- a/mail/em-config.h +++ b/mail/em-config.h @@ -65,6 +65,7 @@ struct _EMConfigTargetAccount { EAccount *original_account; EAccount *modified_account; + CamelSettings *settings; }; typedef struct _EConfigItem EMConfigItem; @@ -90,7 +91,8 @@ EMConfigTargetPrefs * EMConfigTargetAccount * em_config_target_new_account (EMConfig *emp, EAccount *original_account, - EAccount *modified_account); + EAccount *modified_account, + CamelSettings *settings); G_END_DECLS |