diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-11-18 21:56:35 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-11-18 21:56:35 +0800 |
commit | b1cb21f5e74b18e9bb45431bb77f4c2519e9cd75 (patch) | |
tree | 8c3cfc1eda89524e351d0a5dbc24d3b8553c1e7a /mail/mail-accounts.c | |
parent | 7ac3df49839aa97318a31b120788eab13acdf67c (diff) | |
download | gsoc2013-evolution-b1cb21f5e74b18e9bb45431bb77f4c2519e9cd75.tar.gz gsoc2013-evolution-b1cb21f5e74b18e9bb45431bb77f4c2519e9cd75.tar.zst gsoc2013-evolution-b1cb21f5e74b18e9bb45431bb77f4c2519e9cd75.zip |
Specify the default account. Also, don't need to use
2002-11-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (mail_accounts_load): Specify the default
account. Also, don't need to use e_utf8_to_gtk_string() here.
svn path=/trunk/; revision=18826
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r-- | mail/mail-accounts.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index 7e630aeda1..2e1609b717 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -467,10 +467,15 @@ mail_accounts_load (MailAccountsTab *prefs) e_table_memory_set_data (E_TABLE_MEMORY (prefs->model), row, (gpointer) account); #else { + const MailConfigAccount *default_account; char *text[3]; + default_account = mail_config_get_default_account (); + text[0] = NULL; - text[1] = e_utf8_to_gtk_string (GTK_WIDGET (prefs->table), account->name); + text[1] = g_strdup_printf ("%s%s%s", account->name, + account == default_account ? " " : "", + account == default_account ? _("[Default]") : ""); text[2] = url && url->protocol ? url->protocol : (char *) _("None"); gtk_clist_insert (prefs->table, row, text); |