diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-01-20 05:07:33 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-01-20 05:07:33 +0800 |
commit | 5dfe74f61089aedbe323990a2b1065901c4de6bb (patch) | |
tree | 6665c3c904596d9989459a61f8d35f779ac8d4d2 | |
parent | ab8a13b88044b455e21b630614f102ad44362f64 (diff) | |
download | gsoc2013-evolution-5dfe74f61089aedbe323990a2b1065901c4de6bb.tar gsoc2013-evolution-5dfe74f61089aedbe323990a2b1065901c4de6bb.tar.gz gsoc2013-evolution-5dfe74f61089aedbe323990a2b1065901c4de6bb.tar.bz2 gsoc2013-evolution-5dfe74f61089aedbe323990a2b1065901c4de6bb.tar.lz gsoc2013-evolution-5dfe74f61089aedbe323990a2b1065901c4de6bb.tar.xz gsoc2013-evolution-5dfe74f61089aedbe323990a2b1065901c4de6bb.tar.zst gsoc2013-evolution-5dfe74f61089aedbe323990a2b1065901c4de6bb.zip |
Use "Full Name <address>" for the label in the menu rather than the
2001-01-19 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-hdrs.c (create_optionmenu): Use "Full Name
<address>" 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
-rw-r--r-- | composer/ChangeLog | 7 | ||||
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 11 |
2 files changed, 17 insertions, 1 deletions
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 <fejj@ximian.com> + + * e-msg-composer-hdrs.c (create_optionmenu): Use "Full Name + <address>" 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 <jasonleach@usa.net> * 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); |