Commit 3e04b1c5 authored by Didier Roche's avatar Didier Roche Committed by Felipe Borges
Browse files

Only load panel corresponding to OnlyShowIn/NotShowIn

Most panel desktop files have an OnlyShowIn entry to display them
in the previous iconish G-C-C UI. Some distributions (like ubuntu) prefers
adding new panel rather than patching the existing ones to ensure that
the upstream Control Center look it preserved under a vanilla GNOME session.
This patch fix thus the new layout setting to respect the OnlyShowIn property.

https://bugzilla.gnome.org/show_bug.cgi?id=787347
parent cfbe34f9
......@@ -197,6 +197,10 @@ 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;
/* Only add the panel when it is not hidden, e.g. the Details subpanels
* that are only visible in the new Shell.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment