shell-model: Remove hidden category
No more panels are hidden now. https://bugzilla.gnome.org/show_bug.cgi?id=790923
This commit is contained in:
parent
6123d97e3f
commit
c13de500b7
2 changed files with 2 additions and 9 deletions
|
@ -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;
|
||||
|
@ -188,10 +186,6 @@ cc_panel_loader_fill_model (CcShellModel *model)
|
|||
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.
|
||||
*/
|
||||
if (category != CC_CATEGORY_HIDDEN)
|
||||
cc_shell_model_add_item (model, category, G_APP_INFO (app), all_panels[i].name);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,7 +59,6 @@ typedef enum {
|
|||
CC_CATEGORY_HARDWARE,
|
||||
CC_CATEGORY_DEVICES,
|
||||
CC_CATEGORY_DETAILS,
|
||||
CC_CATEGORY_HIDDEN,
|
||||
CC_CATEGORY_LAST
|
||||
} CcPanelCategory;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue