From f43c0f52d3cd3dd76c80da510b2dda837ba05884 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Fri, 16 Jan 2009 12:31:19 +0000 Subject: [PATCH] Show (no address) in header window if to: is empty (fixes NB#97947) pmo-trunk-r7163 --- src/widgets/modest-header-view-render.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/widgets/modest-header-view-render.c b/src/widgets/modest-header-view-render.c index 4848c89..fcbe01b 100644 --- a/src/widgets/modest-header-view-render.c +++ b/src/widgets/modest-header-view-render.c @@ -234,7 +234,9 @@ _modest_header_view_sender_receiver_cell_data (GtkTreeViewColumn *column, -1); modest_text_utils_get_display_address (address); /* string is changed in-place */ - set_cell_text (renderer, address, flags, RENDER_CELL_STYLE_DEFAULT); + + set_cell_text (renderer, (address && address[0] != '\0')?address:_("mail_va_no_to"), + flags, RENDER_CELL_STYLE_DEFAULT); g_free (address); } /* @@ -330,7 +332,7 @@ _modest_header_view_compact_header_cell_data (GtkTreeViewColumn *column, GtkCe /* FIXME: we hardcode the color to #666666; instead we should use SecondaryTextColour from the * theme (gtkrc file) */ modest_text_utils_get_display_address (address); /* changed in-place */ - set_cell_text (recipient_cell, address, flags, RENDER_CELL_STYLE_GREY); + set_cell_text (recipient_cell, (address && address[0] != '\0')?address:_("mail_va_no_to"), flags, RENDER_CELL_STYLE_GREY); g_free (address); if (header_mode == MODEST_HEADER_VIEW_COMPACT_HEADER_MODE_OUTBOX) { -- 1.7.9.5