[gnome-shell] appDisplay: Re-add _getCategories



commit 4d3fd7598d6f20df7a84c66526adc8409badc383
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 14 14:00:17 2014 +0100

    appDisplay: Re-add _getCategories
    
    It was introduced by one of the commits reverted by 812a61939e2d06,
    but is now used for app folders as well; add it back.

 js/ui/appDisplay.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 0d53289..e2db974 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -46,6 +46,13 @@ const INDICATORS_ANIMATION_MAX_TIME = 0.75;
 const PAGE_SWITCH_TRESHOLD = 0.2;
 const PAGE_SWITCH_TIME = 0.3;
 
+function _getCategories(info) {
+    let categoriesStr = info.get_categories();
+    if (!categoriesStr)
+        return [];
+    return categoriesStr.split(';');
+}
+
 function _listsIntersect(a, b) {
     for (let itemA of a)
         if (b.indexOf(itemA) >= 0)


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