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
This commit is contained in:
parent
f44b3e0553
commit
8ee740e425
@ -217,7 +217,8 @@ gather_entries_recurse (ShellAppSystem *monitor,
|
|||||||
{
|
{
|
||||||
GMenuTreeEntry *entry = (GMenuTreeEntry *)item;
|
GMenuTreeEntry *entry = (GMenuTreeEntry *)item;
|
||||||
const char *id = gmenu_tree_entry_get_desktop_file_id (entry);
|
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;
|
break;
|
||||||
case GMENU_TREE_ITEM_DIRECTORY:
|
case GMENU_TREE_ITEM_DIRECTORY:
|
||||||
|
Loading…
Reference in New Issue
Block a user