[Commits] gtkcmctree.c 1.1.2.28 1.1.2.29

colin at claws-mail.org colin at claws-mail.org
Wed Feb 29 17:48:50 CET 2012


Update of /home/claws-mail/claws/src/gtk
In directory srv:/tmp/cvs-serv5658/src/gtk

Modified Files:
      Tag: gtk2
	gtkcmctree.c 
Log Message:
2012-02-29 [colin]	3.8.0cvs30

	* src/gtk/gtkcmctree.c
		Fix 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)". Patch by Michael Shell

Index: gtkcmctree.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/Attic/gtkcmctree.c,v
retrieving revision 1.1.2.28
retrieving revision 1.1.2.29
diff -u -d -r1.1.2.28 -r1.1.2.29
--- gtkcmctree.c	3 Jan 2012 19:43:49 -0000	1.1.2.28
+++ gtkcmctree.c	29 Feb 2012 16:48:40 -0000	1.1.2.29
@@ -695,6 +695,8 @@
         gdk_cairo_rectangle(cr, &cell_rectangle);
 	gdk_cairo_set_source_color(cr, &style->base[GTK_STATE_NORMAL]);
 	cairo_fill(cr);
+	cairo_rectangle(cr, cell_rectangle.x, cell_rectangle.y + row_rectangle.height + 1,cell_rectangle.width,cell_rectangle.height);
+	cairo_fill(cr);
       }
     }
   else
@@ -704,6 +706,8 @@
       gdk_cairo_rectangle(cr, &cell_rectangle);
       gdk_cairo_set_source_color(cr, &style->base[GTK_STATE_NORMAL]);
       cairo_fill(cr);
+      cairo_rectangle(cr, cell_rectangle.x, cell_rectangle.y + row_rectangle.height + 1,cell_rectangle.width,cell_rectangle.height);
+      cairo_fill(cr);
     }
 
   /* the last row has to clear its bottom cell spacing too */
@@ -938,9 +942,10 @@
 	    cairo_set_line_width(cr, 1.0);
 	    cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE);
 	    gdk_cairo_set_source_color(cr, &style->fg[GTK_STATE_NORMAL]);
-	    cairo_rectangle(cr, row_rectangle.x, row_rectangle.y,
-			      row_rectangle.width + 1,
-			      row_rectangle.height);
+	    cairo_move_to (cr, row_rectangle.x, row_rectangle.y + 0.5);
+	    cairo_line_to (cr, row_rectangle.x + row_rectangle.width, row_rectangle.y + 0.5);
+	    cairo_move_to (cr, row_rectangle.x, row_rectangle.y + row_rectangle.height - 0.5);
+	    cairo_line_to (cr, row_rectangle.x + row_rectangle.width, row_rectangle.y + row_rectangle.height - 0.5);
 	    cairo_stroke(cr);
 	}
      }



More information about the Commits mailing list