[gnome-shell] AppDisplay/FrequentView: filter out hidden applications



commit 58872d162bd610578e048bf2832defc93a284a75
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sun Mar 31 20:05:49 2013 +0200

    AppDisplay/FrequentView: filter out hidden applications
    
    Filter out all applications which have the NoDisplay, Hidden or
    Not/OnlyShowIn bits, as those are not meant to be launched directly.
    This also allows the user to filter apps from the frequent view
    using alacarte.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696949

 js/ui/appDisplay.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 22ae481..bcfb57a 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -316,6 +316,8 @@ const FrequentView = new Lang.Class({
     loadApps: function() {
         let mostUsed = this._usage.get_most_used ("");
         for (let i = 0; i < mostUsed.length; i++) {
+            if (!mostUsed[i].get_app_info().should_show())
+                continue;
             let appIcon = new AppIcon(mostUsed[i]);
             this._grid.addItem(appIcon.actor, -1);
         }


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