[gnome-shell/gnome-3-28] Revert "appDisplay: use ShellAppCache to access GAppInfo"



commit 4e22989f07bed42bca06c13b2027b1e6ea0b2a9d
Author: Christian Hergert <chergert redhat com>
Date:   Wed Feb 26 23:43:00 2020 -0800

    Revert "appDisplay: use ShellAppCache to access GAppInfo"
    
    This reverts commit cfb92ad392c6ae459b1d8fb6008d7cdc53d5c151.

 js/ui/appDisplay.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index f04adc3472..18bad24310 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -491,7 +491,7 @@ var AllView = new Lang.Class({
     },
 
     _loadApps() {
-        let apps = Shell.AppCache.get_default().get_all().filter(appInfo => {
+        let apps = Gio.AppInfo.get_all().filter(appInfo => {
             try {
                 let id = appInfo.get_id(); // catch invalid file encodings
             } catch(e) {
@@ -1321,7 +1321,7 @@ var FolderIcon = new Lang.Class({
         folderApps.forEach(addAppId);
 
         let folderCategories = this._folder.get_strv('categories');
-        Shell.AppCache.get_default().get_all().forEach(appInfo => {
+        Gio.AppInfo.get_all().forEach(appInfo => {
             let appCategories = _getCategories(appInfo);
             if (!_listsIntersect(folderCategories, appCategories))
                 return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]