aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-11-18 21:56:35 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-11-18 21:56:35 +0800
commitb1cb21f5e74b18e9bb45431bb77f4c2519e9cd75 (patch)
tree8c3cfc1eda89524e351d0a5dbc24d3b8553c1e7a
parent7ac3df49839aa97318a31b120788eab13acdf67c (diff)
downloadgsoc2013-evolution-b1cb21f5e74b18e9bb45431bb77f4c2519e9cd75.tar
gsoc2013-evolution-b1cb21f5e74b18e9bb45431bb77f4c2519e9cd75.tar.gz
gsoc2013-evolution-b1cb21f5e74b18e9bb45431bb77f4c2519e9cd75.tar.bz2
gsoc2013-evolution-b1cb21f5e74b18e9bb45431bb77f4c2519e9cd75.tar.lz
gsoc2013-evolution-b1cb21f5e74b18e9bb45431bb77f4c2519e9cd75.tar.xz
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
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-accounts.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index c5cc0583fd..d7ad00e5d2 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2002-11-18 Not Zed <NotZed@Ximian.com>
* Makefile.am (evolution_mail_LDADD): Added back
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);