[gnome-software] trivial: Do not show an 'All' subcategory for the meta-category of Addons



commit 35259e23ad28fe5ec7e27f278411b0590930b233
Author: Richard Hughes <richard hughsie com>
Date:   Tue Feb 23 17:02:13 2016 +0000

    trivial: Do not show an 'All' subcategory for the meta-category of Addons

 src/gs-plugin-loader.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index e2dcc65..5fae8e6 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -2094,6 +2094,8 @@ gs_plugin_loader_get_categories_thread_cb (GTask *task,
        /* ensure they all have an 'All' category */
        for (l = state->list; l != NULL; l = l->next) {
                GsCategory *parent = GS_CATEGORY (l->data);
+               if (g_strcmp0 (gs_category_get_id (parent), "Addons") == 0)
+                       continue;
                if (gs_category_find_child (parent, "all") == NULL) {
                        g_autoptr(GsCategory) child = NULL;
                        child = gs_category_new (parent, "all", NULL);


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