[recipes] cuisines page: Limit the amount of big tiles we show



commit 97a9986efe92890ccffd58b7eff9a3f7ef85bfcb
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 d9f525e..515a7b7 100644
--- a/src/gr-cuisines-page.c
+++ b/src/gr-cuisines-page.c
@@ -143,6 +143,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]