[gnome-shell] Don't include NoDisplay items, except for window identification



commit 8ee740e4254dc6c8cfc6864f83cf065beb959985
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Sat Jul 4 15:01:54 2009 +0100

    Don't include NoDisplay items, except for window identification
    
    Searching across NoDisplay desktop items can produce weird
    results to the user (including duplicates, and items that
    aren't really applications at all.) So, don't include them
    normally.
    
    But continue including NoDisplay items when we look up the
    desktop file for a window, since we want to catch applications
    like Evince and Nautilus which are otherwise NoDisplay.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=587548

 src/shell-app-system.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-app-system.c b/src/shell-app-system.c
index 50da81d..44601c2 100644
--- a/src/shell-app-system.c
+++ b/src/shell-app-system.c
@@ -217,7 +217,8 @@ gather_entries_recurse (ShellAppSystem     *monitor,
             {
               GMenuTreeEntry *entry = (GMenuTreeEntry *)item;
               const char *id = gmenu_tree_entry_get_desktop_file_id (entry);
-              ids = g_slist_prepend (ids, g_strdup (id));
+              if (!gmenu_tree_entry_get_is_nodisplay (entry))
+                ids = g_slist_prepend (ids, g_strdup (id));
             }
             break;
           case GMENU_TREE_ITEM_DIRECTORY:



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