From de413a7b8fcdf494ffa64f9e04e45ba77d4dbb33 Mon Sep 17 00:00:00 2001 From: Eric Gregory Date: Wed, 28 Aug 2013 16:51:38 -0700 Subject: [PATCH] Ticket to ride, gray line highway Tell all your friends, Geary looks my way Pay your toll, sell your soul Pound-for-pound grid lines are old --- src/client/views/conversation-list-view.vala | 1 - src/client/views/formatted-conversation-data.vala | 11 ++++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/client/views/conversation-list-view.vala b/src/client/views/conversation-list-view.vala index 2540bc1d..815914ac 100644 --- a/src/client/views/conversation-list-view.vala +++ b/src/client/views/conversation-list-view.vala @@ -40,7 +40,6 @@ public class ConversationListView : Gtk.TreeView { set_show_expanders(false); set_headers_visible(false); - enable_grid_lines = Gtk.TreeViewGridLines.HORIZONTAL; append_column(create_column(ConversationListStore.Column.CONVERSATION_DATA, new ConversationListCellRenderer(), ConversationListStore.Column.CONVERSATION_DATA.to_string(), diff --git a/src/client/views/formatted-conversation-data.vala b/src/client/views/formatted-conversation-data.vala index 2c8c20b1..1b302ba6 100644 --- a/src/client/views/formatted-conversation-data.vala +++ b/src/client/views/formatted-conversation-data.vala @@ -324,7 +324,16 @@ public class FormattedConversationData : Geary.BaseObject { render_subject(widget, cell_area, ctx, y, selected, counter_width); y += ink_rect.height + ink_rect.y + LINE_SPACING; } - + + // Draw separator line. + if (ctx != null && cell_area != null) { + ctx.set_line_width(1.0); + GtkUtil.set_source_color_from_string(ctx, CountBadge.UNREAD_BG_COLOR); + ctx.move_to(cell_area.x - 1, cell_area.y + cell_area.height); + ctx.line_to(cell_area.x + cell_area.width + 1, cell_area.y + cell_area.height); + ctx.stroke(); + } + if (recalc_dims) { FormattedConversationData.preview_height = preview_height; FormattedConversationData.cell_height = y + preview_height;