app-system: Remove lookup_app_by_tree_entry
We want to move away from gnome-menus eventually, so the simple utility method isn't really worth keeping around. Reimplement it in the one place that uses it. https://bugzilla.gnome.org/show_bug.cgi?id=698486
This commit is contained in:
@ -55,8 +55,9 @@ function _loadCategory(dir, view) {
|
||||
while ((nextType = iter.next()) != GMenu.TreeItemType.INVALID) {
|
||||
if (nextType == GMenu.TreeItemType.ENTRY) {
|
||||
let entry = iter.get_entry();
|
||||
let app = appSystem.lookup_app_by_tree_entry(entry);
|
||||
if (!entry.get_app_info().get_nodisplay())
|
||||
let appInfo = entry.get_app_info();
|
||||
let app = appSystem.lookup_app(entry.get_desktop_file_id());
|
||||
if (appInfo.should_show())
|
||||
view.addApp(app);
|
||||
} else if (nextType == GMenu.TreeItemType.DIRECTORY) {
|
||||
let itemDir = iter.get_directory();
|
||||
|
Reference in New Issue
Block a user