[gnome-shell] appDisplay: Do not show NoDisplay directories either
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appDisplay: Do not show NoDisplay directories either
- Date: Tue, 6 Sep 2011 02:16:15 +0000 (UTC)
commit 3b6d907577d8024396c83c148b6f73f8bd614d8b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Sep 4 19:15:13 2011 -0400
appDisplay: Do not show NoDisplay directories either
https://bugzilla.gnome.org/show_bug.cgi?id=658176
js/ui/appDisplay.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 8669d2b..da371e5 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -208,7 +208,8 @@ ViewByCategories.prototype = {
if (!entry.get_app_info().get_nodisplay())
appList.push(app);
} else if (nextType == GMenu.TreeItemType.DIRECTORY) {
- this._loadCategory(iter.get_directory(), appList);
+ if (!dir.get_is_nodisplay())
+ this._loadCategory(iter.get_directory(), appList);
}
}
},
@@ -262,6 +263,8 @@ ViewByCategories.prototype = {
while ((nextType = iter.next()) != GMenu.TreeItemType.INVALID) {
if (nextType == GMenu.TreeItemType.DIRECTORY) {
var dir = iter.get_directory();
+ if (dir.get_is_nodisplay())
+ continue;
this._addCategory(dir.get_name(), i, dir);
i++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]