talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit a10cf7518f9d97e9925a9807dd9f3da283225776
parent f89eee0aba27d49665c47d62bec7dd631c8167c2
Author: Ricardo Mones <ricardo@mones.org>
Date:   Mon, 24 Nov 2014 01:43:10 +0100

Bug #2577 → improve focus rectangle removal in summaryview

Patch by Andreas Rönnquist, thanks!

Diffstat:
Msrc/gtk/gtkcmclist.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c @@ -6610,9 +6610,9 @@ gtk_cmclist_draw_focus (GtkWidget *widget) cairo_dash_from_add_mode(clist, cr); cairo_set_line_width(cr, 1.0); cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); - cairo_rectangle(cr, 0, ROW_TOP_YPIXEL(clist, clist->focus_row), + cairo_rectangle(cr, 0, ROW_TOP_YPIXEL(clist, clist->focus_row) + 0.5, clist->clist_window_width + 1, - clist->row_height); + clist->row_height - 0.5); cairo_stroke(cr); cairo_destroy(cr); } @@ -6639,9 +6639,9 @@ gtk_cmclist_undraw_focus (GtkWidget *widget) cairo_set_line_width(cr, 1.0); gdk_cairo_set_source_color(cr, &gtk_widget_get_style(widget)->base[GTK_STATE_NORMAL]); cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); - cairo_rectangle(cr, 0, ROW_TOP_YPIXEL(clist, clist->focus_row), + cairo_rectangle(cr, 0, ROW_TOP_YPIXEL(clist, clist->focus_row) + 0.5, clist->clist_window_width + 1, - clist->row_height); + clist->row_height - 0.5); cairo_stroke(cr); cairo_destroy(cr); }