[recipes/more-cuisines: 3/5] cuisines page: Limit the amount of big tiles we show



commit 23bb77afca4d76c1a02b8ec59007821ab418d1c6
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 5 12:31:36 2017 -0500

    cuisines page: Limit the amount of big tiles we show
    
    Only do the featured tile plus 2 more rows. Otherwise, there
    is not enough room for other things we want to add here.

 src/gr-cuisines-page.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-cuisines-page.c b/src/gr-cuisines-page.c
index ea4303f..796fbba 100644
--- a/src/gr-cuisines-page.c
+++ b/src/gr-cuisines-page.c
@@ -144,6 +144,9 @@ populate_cuisines (GrCuisinesPage *page)
                 gtk_grid_attach (GTK_GRID (page->top_box), tile, tiles % 2, 1 + tiles / 2, 1, 1);
 
                 tiles++;
+
+                if (tiles == 4)
+                        break;
         }
 }
 


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