[gtk+/icon-view-refactor: 5/13] Alignments with variable row heights almost works perfectly.



commit b68fb6aa853583291864314aa09be9d219978b74
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sun Dec 12 20:59:41 2010 +0900

    Alignments with variable row heights almost works perfectly.
    
    However, I'm going to have to figure a way to store the alignments
    for rows separately, this may involve using a separate GtkCellAreaContext
    for each row, unfortunately.

 gtk/gtkiconview.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 73b4aa6..b5adb7f 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -2695,8 +2695,6 @@ gtk_icon_view_layout_single_row (GtkIconView *icon_view,
 
       current_width += item->width;
 
-      max_height = MAX (max_height, item->height);
-
       if (items != first_item)
 	{
 	  if ((icon_view->priv->columns <= 0 && current_width > allocation.width) ||
@@ -2704,6 +2702,8 @@ gtk_icon_view_layout_single_row (GtkIconView *icon_view,
 	    break;
 	}
 
+      max_height = MAX (max_height, item->height);
+
       current_width += icon_view->priv->column_spacing;
 
       item->y = *y;



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