diff options
author | Larry Ewing <lewing@ximian.com> | 2001-01-30 18:23:18 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2001-01-30 18:23:18 +0800 |
commit | 292149afa56873fe4dbc48a19f6645f1a8f2aa81 (patch) | |
tree | 23976a7cd8c3a1396cbb0b5d36eaae447a371124 /composer/e-msg-composer-hdrs.c | |
parent | 386f98d6360d6fac78394d5421c160b0e29c0647 (diff) | |
download | gsoc2013-evolution-292149afa56873fe4dbc48a19f6645f1a8f2aa81.tar.gz gsoc2013-evolution-292149afa56873fe4dbc48a19f6645f1a8f2aa81.tar.zst gsoc2013-evolution-292149afa56873fe4dbc48a19f6645f1a8f2aa81.zip |
make sure we convert from utf-8 before creating the option menu items.
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.
svn path=/trunk/; revision=7908
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 8 |
1 files changed, 6 insertions, 2 deletions
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)); |