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
This commit is contained in:
Eric Gregory 2013-08-28 16:51:38 -07:00
parent de2941cf8d
commit de413a7b8f
2 changed files with 10 additions and 2 deletions

View file

@ -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(),

View file

@ -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;