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
This commit is contained in:
parent
cfbe34f94c
commit
3e04b1c53b
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue