[gtk+] Moved the drawing of horizontal grid lines after cell drawing.



commit ac34031b4e870f12648af31b4e3677e4fcb462a2
Author: Szilárd Pfeiffer <mailbox pfeifferszilard hu>
Date:   Sun Jul 25 14:46:57 2010 +0200

    Moved the drawing of horizontal grid lines after cell drawing.
    
    Without the change if the cell background is set the horizontal
    grid line cannot be seen.

 gtk/gtktreeview.c |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 3caa95d..3ccff33 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -4640,23 +4640,6 @@ gtk_tree_view_bin_expose (GtkWidget      *widget,
 				  background_area.height);
 	    }
 
-	  if (draw_hgrid_lines)
-	    {
-	      if (background_area.y > 0)
-		gdk_draw_line (event->window,
-			       tree_view->priv->grid_line_gc,
-			       background_area.x, background_area.y,
-			       background_area.x + background_area.width,
-			       background_area.y);
-
-	      if (y_offset + max_height >= event->area.height)
-		gdk_draw_line (event->window,
-			       tree_view->priv->grid_line_gc,
-			       background_area.x, background_area.y + max_height,
-			       background_area.x + background_area.width,
-			       background_area.y + max_height);
-	    }
-
 	  if (gtk_tree_view_is_expander_column (tree_view, column))
 	    {
 	      if (!rtl)
@@ -4731,6 +4714,23 @@ gtk_tree_view_bin_expose (GtkWidget      *widget,
 						   flags);
 	    }
 
+	  if (draw_hgrid_lines)
+	    {
+	      if (background_area.y > 0)
+		gdk_draw_line (event->window,
+			       tree_view->priv->grid_line_gc,
+			       background_area.x, background_area.y,
+			       background_area.x + background_area.width,
+			       background_area.y);
+
+	      if (y_offset + max_height >= event->area.height)
+		gdk_draw_line (event->window,
+			       tree_view->priv->grid_line_gc,
+			       background_area.x, background_area.y + max_height,
+			       background_area.x + background_area.width,
+			       background_area.y + max_height);
+	    }
+
 	  if (gtk_tree_view_is_expander_column (tree_view, column) &&
 	      tree_view->priv->tree_lines_enabled)
 	    {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]