[gnome-software] trivial: Do not have a blank space when skipping a parent category



commit a523540aefae479837c090731f15f4d2c6396b77
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 16 19:18:49 2013 +0100

    trivial: Do not have a blank space when skipping a parent category

 src/gs-shell-overview.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index c55da82..9e49f6d 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -196,7 +196,7 @@ gs_shell_overview_get_categories_cb (GObject *source_object,
                goto out;
        }
        grid = GTK_WIDGET (gtk_builder_get_object (priv->builder, "grid_categories"));
-       for (l = list, i = 0; l; l = l->next, i++) {
+       for (l = list, i = 0; l; l = l->next) {
                cat = GS_CATEGORY (l->data);
                if (gs_category_get_size (cat) == 0)
                        continue;
@@ -204,6 +204,7 @@ gs_shell_overview_get_categories_cb (GObject *source_object,
                g_signal_connect (tile, "clicked",
                                  G_CALLBACK (category_tile_clicked), shell);
                gtk_grid_attach (GTK_GRID (grid), tile, i % 3, i / 3, 1, 1);
+               i++;
        }
        g_list_free_full (list, g_object_unref);
 out:


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