aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorLauris Kaplinski <lauris@src.gnome.org>2000-09-02 10:51:32 +0800
committerLauris Kaplinski <lauris@src.gnome.org>2000-09-02 10:51:32 +0800
commite8ae4bc97abed6ad8571908f5fc4ac6fd5565fde (patch)
treee81cd450c3094cf33bbda8d65508b6edd5654625 /composer
parent16829497fd3a11bae35aaa440ee18ede4961ceb9 (diff)
downloadgsoc2013-evolution-e8ae4bc97abed6ad8571908f5fc4ac6fd5565fde.tar.gz
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')
-rw-r--r--composer/ChangeLog4
-rw-r--r--composer/e-msg-composer-address-dialog.c10
2 files changed, 11 insertions, 3 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index e6689b1ce0..02f48c58a5 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,7 @@
+2000-09-02 Lauris Kaplinski <lauris@helixcode.com>
+
+ * e-msg-composer-address-dialog.c: Use e_utf8 wrappers
+
2000-09-01 Jeffrey Stedfast <fejj@helixcode.com>
* e-msg-composer.c (e_msg_composer_get_sig_file): This needs to
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);