diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-09-13 07:28:49 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-09-13 07:28:49 +0000 |
commit | 60afaca7f0fc0eafad37b26bfd7050470da9b994 (patch) | |
tree | cba0b5c24f892acf8c8c10a34c95fc99c154a4f8 /src | |
parent | 9026c5444aa126d97995f8f9b1c826109545d9f1 (diff) |
simplify To headers on summary view.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1897 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/summaryview.c | 8 |
1 files changed, 7 insertions, 1 deletions
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) |