[gnome-control-center/wip/gbsneto/remove-old-shell: 18/18] shell-model: Remove hidden category
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/gbsneto/remove-old-shell: 18/18] shell-model: Remove hidden category
- Date: Tue, 28 Nov 2017 01:36:06 +0000 (UTC)
commit 5cd6c838ea0206e9a363e1b471b35316850a168a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Nov 11 01:24:35 2017 -0200
shell-model: Remove hidden category
No more panels are hidden now.
https://bugzilla.gnome.org/show_bug.cgi?id=790923
shell/cc-panel-loader.c | 7 ++-----
shell/cc-shell-model.h | 1 -
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
index a9762d6..3e906cb 100644
--- a/shell/cc-panel-loader.c
+++ b/shell/cc-panel-loader.c
@@ -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;
@@ -191,8 +189,7 @@ cc_panel_loader_fill_model (CcShellModel *model)
/* 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);
+ cc_shell_model_add_item (model, category, G_APP_INFO (app), all_panels[i].name);
}
}
diff --git a/shell/cc-shell-model.h b/shell/cc-shell-model.h
index 21ab1f4..2594071 100644
--- a/shell/cc-shell-model.h
+++ b/shell/cc-shell-model.h
@@ -59,7 +59,6 @@ typedef enum {
CC_CATEGORY_HARDWARE,
CC_CATEGORY_DEVICES,
CC_CATEGORY_DETAILS,
- CC_CATEGORY_HIDDEN,
CC_CATEGORY_LAST
} CcPanelCategory;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]