[gnome-control-center] shell-model: Remove hidden category



commit c13de500b763d08f60b328ce5daadfc1a4891127
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 |   10 ++--------
 shell/cc-shell-model.h  |    1 -
 2 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
index a9762d6..675833c 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;
@@ -188,11 +186,7 @@ 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);
+      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]