summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2017-11-11 01:24:35 -0200
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2017-11-27 23:32:34 -0200
commit5cd6c838ea0206e9a363e1b471b35316850a168a (patch)
treec6428cda879f75ea725d6476cf50e8c2b5d41da5
parent5075b44af165605e3ac4f94cbca611550b49d059 (diff)
downloadgnome-control-center-wip/gbsneto/remove-old-shell.tar.gz
shell-model: Remove hidden categorywip/gbsneto/remove-old-shell
No more panels are hidden now. https://bugzilla.gnome.org/show_bug.cgi?id=790923
-rw-r--r--shell/cc-panel-loader.c7
-rw-r--r--shell/cc-shell-model.h1
2 files changed, 2 insertions, 6 deletions
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
index a9762d6ff..3e906cbf3 100644
--- a/shell/cc-panel-loader.c
+++ b/shell/cc-panel-loader.c
@@ -132,9 +132,7 @@ parse_categories (GDesktopAppInfo *app)
#define const_strv(s) ((const gchar* const*) s)
- if (g_strv_contains (const_strv (split), "X-GNOME-AltHidden"))
- retval = CC_CATEGORY_HIDDEN;
- else if (g_strv_contains (const_strv (split), "X-GNOME-ConnectivitySettings"))
+ if (g_strv_contains (const_strv (split), "X-GNOME-ConnectivitySettings"))
retval = CC_CATEGORY_CONNECTIVITY;
else if (g_strv_contains (const_strv (split), "X-GNOME-PersonalizationSettings"))
retval = CC_CATEGORY_PERSONALIZATION;
@@ -191,8 +189,7 @@ cc_panel_loader_fill_model (CcShellModel *model)
/* Only add the panel when it is not hidden, e.g. the Details subpanels
* that are only visible in the new Shell.
*/
- if (category != CC_CATEGORY_HIDDEN)
- cc_shell_model_add_item (model, category, G_APP_INFO (app), all_panels[i].name);
+ cc_shell_model_add_item (model, category, G_APP_INFO (app), all_panels[i].name);
}
}
diff --git a/shell/cc-shell-model.h b/shell/cc-shell-model.h
index 21ab1f44b..259407109 100644
--- a/shell/cc-shell-model.h
+++ b/shell/cc-shell-model.h
@@ -59,7 +59,6 @@ typedef enum {
CC_CATEGORY_HARDWARE,
CC_CATEGORY_DEVICES,
CC_CATEGORY_DETAILS,
- CC_CATEGORY_HIDDEN,
CC_CATEGORY_LAST
} CcPanelCategory;