summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2020-02-11 09:51:30 +1300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2020-02-17 23:23:25 +0000
commit60875cc4f2ec16b228de1ee3ea2b4fe6782fb255 (patch)
tree067ae77c701bb97fb572ac50e1bdd10c6e7741f7 /shell
parenta80bbdf1a02265afe755b709179e16d373508a6f (diff)
downloadgnome-control-center-60875cc4f2ec16b228de1ee3ea2b4fe6782fb255.tar.gz
shell: Don't use the OnlyShowIn/NotShowIn flags from desktop files to hide panels
It was added in 3e04b1c53b to allow downstreams to hide panels that don't make sense in their environment. Later on the ability for panels to hide themselves was added in a78cbe3963, which is a better solution for this case. The current situation is confusing if you are not a known environment, as then no panels show. Fixes #163
Diffstat (limited to 'shell')
-rw-r--r--shell/cc-panel-loader.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
index 2b3bce576..f20384394 100644
--- a/shell/cc-panel-loader.c
+++ b/shell/cc-panel-loader.c
@@ -257,10 +257,6 @@ cc_panel_loader_fill_model (CcShellModel *model)
if (G_UNLIKELY (category < 0))
continue;
- /* Consult OnlyShowIn/NotShowIn for desktop environments */
- if (!g_desktop_app_info_get_show_in (app, NULL))
- continue;
-
cc_shell_model_add_item (model, category, G_APP_INFO (app), panels_vtable[i].name);
}