diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-09-21 10:21:12 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-09-21 10:21:12 +0800 |
commit | f21fc37e3c2025f2a6b4ed3a24123d2a7fd5eed4 (patch) | |
tree | 3ff576d259a84975fb59178039a0625ac67c73d5 /mail/mail-config.c | |
parent | a7006d79617c55e3cd774ad7589d8d71585dae7d (diff) | |
download | gsoc2013-evolution-f21fc37e3c2025f2a6b4ed3a24123d2a7fd5eed4.tar.gz gsoc2013-evolution-f21fc37e3c2025f2a6b4ed3a24123d2a7fd5eed4.tar.zst gsoc2013-evolution-f21fc37e3c2025f2a6b4ed3a24123d2a7fd5eed4.zip |
Only add the account if it doesn't already exist in the config db.
2001-09-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Only add the account
if it doesn't already exist in the config db.
* mail-config.c (mail_config_find_account): New convenience
function.
svn path=/trunk/; revision=13039
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 709bde47c3..a518144a47 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -1369,6 +1369,12 @@ mail_config_set_default_charset (const char *charset) } +gboolean +mail_config_find_account (const MailConfigAccount *account) +{ + return g_slist_find (config->accounts, (gpointer) account) != NULL; +} + const MailConfigAccount * mail_config_get_default_account (void) { |