From 292149afa56873fe4dbc48a19f6645f1a8f2aa81 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Tue, 30 Jan 2001 10:23:18 +0000 Subject: make sure we convert from utf-8 before creating the option menu items. 2001-01-30 Larry Ewing * e-msg-composer-hdrs.c (create_optionmenu): make sure we convert from utf-8 before creating the option menu items. svn path=/trunk/; revision=7908 --- composer/e-msg-composer-hdrs.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'composer/e-msg-composer-hdrs.c') 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)); -- cgit v1.2.3