[evolution] Bug #619347 - Decode QP in email in Contact List Editor
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #619347 - Decode QP in email in Contact List Editor
- Date: Fri, 13 May 2011 07:56:35 +0000 (UTC)
commit 8807321506d4bed40c15e738679de995a5f98d86
Author: Milan Crha <mcrha redhat com>
Date: Fri May 13 09:56:11 2011 +0200
Bug #619347 - Decode QP in email in Contact List Editor
.../contact-list-editor/e-contact-list-editor.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
index 08ddac7..2616b84 100644
--- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c
+++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
@@ -316,11 +316,21 @@ contact_list_editor_render_destination (GtkTreeViewColumn *column,
EDestination *destination;
const gchar *textrep;
+ gchar *name = NULL, *email = NULL, *tofree = NULL;
gtk_tree_model_get (model, iter, 0, &destination, -1);
textrep = e_destination_get_textrep (destination, TRUE);
+
+ if (eab_parse_qp_email (textrep, &name, &email)) {
+ tofree = g_strdup_printf ("%s <%s>", name, email);
+ textrep = tofree;
+ g_free (name);
+ g_free (email);
+ }
+
g_object_set (renderer, "text", textrep, NULL);
g_object_unref (destination);
+ g_free (tofree);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]