[gnome-software] trivial: Add some debugging when not including a subcategory



commit 8ca01363e93b3299590e777c931872ea00d25b54
Author: Richard Hughes <richard hughsie com>
Date:   Fri Sep 2 18:51:42 2016 +0100

    trivial: Add some debugging when not including a subcategory

 src/gs-shell-category.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-category.c b/src/gs-shell-category.c
index c9d0b50..783ab4e 100644
--- a/src/gs-shell-category.c
+++ b/src/gs-shell-category.c
@@ -189,8 +189,12 @@ gs_shell_category_create_filter_list (GsShellCategory *self,
        children = gs_category_get_children (category);
        for (i = 0; i < children->len; i++) {
                s = GS_CATEGORY (g_ptr_array_index (children, i));
-               if (gs_category_get_size (s) < 1)
+               if (gs_category_get_size (s) < 1) {
+                       g_debug ("not showing %s/%s as no apps",
+                                gs_category_get_id (category),
+                                gs_category_get_id (s));
                        continue;
+               }
                row = gtk_label_new (gs_category_get_name (s));
                g_object_set_data_full (G_OBJECT (row), "category", g_object_ref (s), g_object_unref);
                g_object_set (row, "xalign", 0.0, "margin", 10, NULL);


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