[gnome-software] Don't show more than 6 picks
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-software] Don't show more than 6 picks
- Date: Sun,  1 Sep 2013 15:14:27 +0000 (UTC)
commit e774524d2520283ad0267dac1bb47a3400a4247e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 1 11:13:12 2013 -0400
    Don't show more than 6 picks
 src/gs-shell-overview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index ee51c88..772a04f 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -150,7 +150,7 @@ gs_shell_overview_get_popular_cb (GObject *source_object,
        }
 
        grid = GTK_WIDGET (gtk_builder_get_object (priv->builder, "box_popular"));
-       for (l = list, i = 0; l != NULL; l = l->next, i++) {
+       for (l = list, i = 0; l != NULL && i < 6; l = l->next, i++) {
                app = GS_APP (l->data);
                tile = create_popular_tile (shell_overview, app);
                 gtk_box_pack_start (GTK_BOX (grid), tile, TRUE, TRUE, 0);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]