From 5dfe74f61089aedbe323990a2b1065901c4de6bb Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 19 Jan 2001 21:07:33 +0000 Subject: Use "Full Name
" for the label in the menu rather than the 2001-01-19 Jeffrey Stedfast * e-msg-composer-hdrs.c (create_optionmenu): Use "Full Name
" for the label in the menu rather than the account name. Specify the account name only if it's not the same as the address. svn path=/trunk/; revision=7652 --- composer/ChangeLog | 7 +++++++ composer/e-msg-composer-hdrs.c | 11 ++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/composer/ChangeLog b/composer/ChangeLog index b2492fd67c..e2a42efc6a 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,10 @@ +2001-01-19 Jeffrey Stedfast + + * e-msg-composer-hdrs.c (create_optionmenu): Use "Full Name +
" for the label in the menu rather than the account + name. Specify the account name only if it's not the same as the + address. + 2001-01-19 Jason Leach * e-msg-composer-hdrs.c (create_addressbook_entry): Listen for diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 834d63214a..4228bd5f4c 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -152,6 +152,7 @@ create_optionmenu (EMsgComposerHdrs *hdrs, accounts = mail_config_get_accounts (); while (accounts) { const MailConfigAccount *account; + char *label; account = accounts->data; @@ -161,7 +162,15 @@ create_optionmenu (EMsgComposerHdrs *hdrs, continue; } - item = gtk_menu_item_new_with_label (account->name); + if (strcmp (account->name, account->id->address)) + label = g_strdup_printf ("%s <%s> (%s)", account->id->name, + account->id->address, account->name); + else + label = g_strdup_printf ("%s <%s>", account->id->name, account->id->address); + + item = gtk_menu_item_new_with_label (label); + g_free (label); + gtk_object_set_data (GTK_OBJECT (item), "account", account_copy (account)); gtk_signal_connect (GTK_OBJECT (item), "activate", GTK_SIGNAL_FUNC (from_changed), hdrs); -- cgit