From 60afaca7f0fc0eafad37b26bfd7050470da9b994 Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 13 Sep 2007 07:28:49 +0000 Subject: simplify To headers on summary view. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1897 ee746299-78ed-0310-b773-934348b2243d --- src/summaryview.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/summaryview.c') diff --git a/src/summaryview.c b/src/summaryview.c index 6c653b3b..6799dec4 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -2291,6 +2291,7 @@ static void summary_set_row(SummaryView *summaryview, GtkTreeIter *iter, const gchar *date_s; gchar *sw_from_s = NULL; gchar *subject_s = NULL; + gchar *to_s = NULL; GdkPixbuf *mark_pix = NULL; GdkPixbuf *unread_pix = NULL; GdkPixbuf *mime_pix = NULL; @@ -2329,6 +2330,9 @@ static void summary_set_row(SummaryView *summaryview, GtkTreeIter *iter, } } + if (msginfo->to) + to_s = procheader_get_toname(msginfo->to); + flags = msginfo->flags; /* set flag pixbufs */ @@ -2392,7 +2396,7 @@ static void summary_set_row(SummaryView *summaryview, GtkTreeIter *iter, S_COL_DATE, date_s, S_COL_SIZE, to_human_readable(msginfo->size), S_COL_NUMBER, msginfo->msgnum, - S_COL_TO, msginfo->to ? msginfo->to : "", + S_COL_TO, to_s ? to_s : "", S_COL_MSG_INFO, msginfo, @@ -2402,6 +2406,8 @@ static void summary_set_row(SummaryView *summaryview, GtkTreeIter *iter, S_COL_BOLD, weight, -1); + if (to_s) + g_free(to_s); if (subject_s) g_free(subject_s); if (sw_from_s) -- cgit v1.2.3