[gnome-shell/app-picker-refresh: 13/16] appDisplay: Create AppFolderIcons for selected categories
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/app-picker-refresh: 13/16] appDisplay: Create AppFolderIcons for selected categories
- Date: Tue, 19 Feb 2013 11:56:34 +0000 (UTC)
commit 7c00db0103755cbc96bea3b8a42e614210db6bfb
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jan 31 17:14:13 2013 +0100
appDisplay: Create AppFolderIcons for selected categories
js/ui/appDisplay.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 334e131..989bf46 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -33,6 +33,8 @@ const MAX_COLUMNS = 6;
const FOLDER_SUBICON_FRACTION = .4;
+const FOLDER_CATEGORIES = ["Utilities", "Sundry"];
+
// Recursively load a GMenuTreeDirectory; we could put this in ShellAppSystem too
function _loadCategory(dir, view) {
@@ -243,6 +245,10 @@ const AppDisplay = new Lang.Class({
if (dir.get_is_nodisplay())
continue;
+ if (FOLDER_CATEGORIES.indexOf(dir.get_menu_id()) != -1) {
+ this._view.addFolder(dir);
+ } else
+
_loadCategory(dir, this._view);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]