aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-01-30 18:23:18 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-01-30 18:23:18 +0800
commit292149afa56873fe4dbc48a19f6645f1a8f2aa81 (patch)
tree23976a7cd8c3a1396cbb0b5d36eaae447a371124
parent386f98d6360d6fac78394d5421c160b0e29c0647 (diff)
downloadgsoc2013-evolution-292149afa56873fe4dbc48a19f6645f1a8f2aa81.tar
gsoc2013-evolution-292149afa56873fe4dbc48a19f6645f1a8f2aa81.tar.gz
gsoc2013-evolution-292149afa56873fe4dbc48a19f6645f1a8f2aa81.tar.bz2
gsoc2013-evolution-292149afa56873fe4dbc48a19f6645f1a8f2aa81.tar.lz
gsoc2013-evolution-292149afa56873fe4dbc48a19f6645f1a8f2aa81.tar.xz
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
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer-hdrs.c8
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));