diff options
-rw-r--r-- | composer/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 34fffcad58..a6c25bccd7 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2001-01-30 Larry Ewing <lewing@ximian.com> + + * e-msg-composer-hdrs.c (create_optionmenu): make sure we convert + from utf-8 before creating the option menu items. + 2001-01-25 Jason Leach <jasonleach@usa.net> (Moving the flag for has_changed from the Hdrs to the Composer diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 1ac061ed82..436ae39cb4 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -154,7 +154,8 @@ create_optionmenu (EMsgComposerHdrs *hdrs, while (accounts) { const MailConfigAccount *account; char *label; - + char *native_label; + account = accounts->data; /* this should never ever fail */ @@ -169,7 +170,10 @@ create_optionmenu (EMsgComposerHdrs *hdrs, else label = g_strdup_printf ("%s <%s>", account->id->name, account->id->address); - item = gtk_menu_item_new_with_label (label); + + native_label = e_utf8_to_gtk_string (GTK_WIDGET (menu), label); + item = gtk_menu_item_new_with_label (native_label); + g_free (native_label); g_free (label); gtk_object_set_data (GTK_OBJECT (item), "account", account_copy (account)); |