aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.h
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-07-19 09:25:09 +0800
committerJacob Leach <jleach@src.gnome.org>2001-07-19 09:25:09 +0800
commitc87ef1f0a3302d89aacafcff22de49e442c18dc4 (patch)
treeade4574bee3d8204047b40ac6881d4cae5a5786b /mail/mail-config.h
parent150e7c57f8f542baf7e4f71caf38fe0d60c8917b (diff)
downloadgsoc2013-evolution-c87ef1f0a3302d89aacafcff22de49e442c18dc4.tar.gz
gsoc2013-evolution-c87ef1f0a3302d89aacafcff22de49e442c18dc4.tar.zst
gsoc2013-evolution-c87ef1f0a3302d89aacafcff22de49e442c18dc4.zip
[Simplifying how default account is stored and used internally, fixes
2001-07-18 Jason Leach <jleach@ximian.com> [Simplifying how default account is stored and used internally, fixes possabilities of having multiple default accounts and things like deleting the current default account] * mail-account-gui.c (mail_account_gui_new): Update for new way of finding out the default account. (mail_account_gui_save): Ditto. * mail-accounts.c (load_accounts): Ditto. * mail-config-druid.c (make_default_account): Ditto. * mail-config.c: Added an int MailConfig::default_account, to be used instead of a 'default_account' boolean on each mail account. (mail_config_set_default_account_num): New function, facilitates things. * Mail.idl: removed the Account::default_account boolean. svn path=/trunk/; revision=11218
Diffstat (limited to 'mail/mail-config.h')
-rw-r--r--mail/mail-config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/mail-config.h b/mail/mail-config.h
index 365d97a7af..551d6a81ff 100644
--- a/mail/mail-config.h
+++ b/mail/mail-config.h
@@ -51,7 +51,6 @@ typedef struct {
typedef struct {
gchar *name;
- gboolean default_account;
MailConfigIdentity *id;
MailConfigService *source;
@@ -164,11 +163,13 @@ const char *mail_config_get_default_charset (void);
void mail_config_set_default_charset (const char *charset);
const MailConfigAccount *mail_config_get_default_account (void);
+gint mail_config_get_default_account_num (void);
const MailConfigAccount *mail_config_get_account_by_name (const char *account_name);
const MailConfigAccount *mail_config_get_account_by_source_url (const char *url);
const GSList *mail_config_get_accounts (void);
void mail_config_add_account (MailConfigAccount *account);
const GSList *mail_config_remove_account (MailConfigAccount *account);
+
void mail_config_set_default_account (const MailConfigAccount *account);
const MailConfigIdentity *mail_config_get_default_identity (void);