[Users] [Bug 2577] Focus rectangle on folder list and message list headings doesn't get properly cleared when switching heading and horizontally scrolling list (underlines and vertical lines remain on screen)

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Fri Nov 7 20:54:17 CET 2014


http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2577

--- Comment #34 from Andreas Rönnquist <gusnan at gusnan.se> ---
Gah, that previous patch was obviously incomplete, there's a similar unfocus
function just below the focus one:

diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c
index b280758..737b278 100644
--- 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);
   }

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Users mailing list