diff options
author | Lauris Kaplinski <lauris@src.gnome.org> | 2000-09-02 10:51:32 +0800 |
---|---|---|
committer | Lauris Kaplinski <lauris@src.gnome.org> | 2000-09-02 10:51:32 +0800 |
commit | e8ae4bc97abed6ad8571908f5fc4ac6fd5565fde (patch) | |
tree | e81cd450c3094cf33bbda8d65508b6edd5654625 /composer/e-msg-composer-address-dialog.c | |
parent | 16829497fd3a11bae35aaa440ee18ede4961ceb9 (diff) | |
download | gsoc2013-evolution-e8ae4bc97abed6ad8571908f5fc4ac6fd5565fde.tar gsoc2013-evolution-e8ae4bc97abed6ad8571908f5fc4ac6fd5565fde.tar.gz gsoc2013-evolution-e8ae4bc97abed6ad8571908f5fc4ac6fd5565fde.tar.bz2 gsoc2013-evolution-e8ae4bc97abed6ad8571908f5fc4ac6fd5565fde.tar.lz gsoc2013-evolution-e8ae4bc97abed6ad8571908f5fc4ac6fd5565fde.tar.xz gsoc2013-evolution-e8ae4bc97abed6ad8571908f5fc4ac6fd5565fde.tar.zst gsoc2013-evolution-e8ae4bc97abed6ad8571908f5fc4ac6fd5565fde.zip |
A bit more e_utf8 wrappers here and there
svn path=/trunk/; revision=5180
Diffstat (limited to 'composer/e-msg-composer-address-dialog.c')
-rw-r--r-- | composer/e-msg-composer-address-dialog.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/composer/e-msg-composer-address-dialog.c b/composer/e-msg-composer-address-dialog.c index 5eec51c435..868bafb414 100644 --- a/composer/e-msg-composer-address-dialog.c +++ b/composer/e-msg-composer-address-dialog.c @@ -23,6 +23,7 @@ #include <gnome.h> #include "e-msg-composer-address-dialog.h" +#include <e-util/e-unicode.h> enum { @@ -53,7 +54,7 @@ load_addresses (EMsgComposerAddressDialog *dialog) clist = GTK_CLIST (glade_xml_get_widget (dialog->gui, "address_clist")); for (i = 0; text[i][0] != NULL; i++) - gtk_clist_append (clist, text[i]); + e_utf8_gtk_clist_append (clist, text[i]); } /* Combine name and email into an address, e.g. "Ettore Perazzoli @@ -89,12 +90,15 @@ add_address (EMsgComposerAddressDialog *dialog, gtk_clist_get_text (src_clist, row, 0, &name); gtk_clist_get_text (src_clist, row, 1, &email); + name = e_utf8_from_gtk_string ((GtkWidget *) src_clist, name); + text[0] = make_full_address (name, email); text[1] = NULL; - gtk_clist_append (dest_clist, text); + e_utf8_gtk_clist_append (dest_clist, text); g_free (text[0]); + g_free (name); } static void @@ -570,7 +574,7 @@ set_list (EMsgComposerAddressDialog *dialog, text[1] = NULL; for (p = list; p != NULL; p = p->next) { text[0] = (gchar *) p->data; - gtk_clist_append (clist, text); + e_utf8_gtk_clist_append (clist, text); } gtk_clist_thaw (clist); |