[gnome-control-center] shell: Don't use the OnlyShowIn/NotShowIn flags from desktop files to hide panels
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Don't use the OnlyShowIn/NotShowIn flags from desktop files to hide panels
- Date: Mon, 17 Feb 2020 23:31:41 +0000 (UTC)
commit 60875cc4f2ec16b228de1ee3ea2b4fe6782fb255
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Feb 11 09:51:30 2020 +1300
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
shell/cc-panel-loader.c | 4 ----
1 file changed, 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]