[gnome-shell/wip/raresv/uiTweaks] saerch.js: listsearchresult now knows of the terms.



commit 6d0368e196aacea2854adc762f2a21cf5c7873e5
Author: raresvis <rares visalom gmail com>
Date:   Fri Jun 23 21:18:40 2017 +0300

    saerch.js: listsearchresult now knows of the terms.

 js/ui/search.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index 660fdc7..790cd86 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -76,7 +76,7 @@ const ListSearchResult = new Lang.Class({
 
     _init: function(provider, metaInfo) {
         this.parent(provider, metaInfo);
-
+        log ('>>>' + metaInfo.terms);
         this.actor.style_class = 'list-search-result';
         this.actor.x_fill = true;
 
@@ -108,7 +108,7 @@ const ListSearchResult = new Lang.Class({
             let description = new St.Label({
                                 style_class: 'list-search-result-description',
                                 text: this.metaInfo['description'] });
-
+            log('metainfo description: ' + this.metaInfo['description']);
             details.add(description, { x_fill: false,
                                        y_fill: false,
                                        x_align: St.Align.START,
@@ -221,6 +221,7 @@ const SearchResultsBase = new Lang.Class({
 
                 metasNeeded.forEach(Lang.bind(this, function(resultId, i) {
                     let meta = metas[i];
+                    meta.terms = this._terms;
                     let display = this._createResultDisplay(meta);
                     display.connect('activate', Lang.bind(this, this._activateResult));
                     display.actor.connect('key-focus-in', Lang.bind(this, this._keyFocusIn));
@@ -233,7 +234,6 @@ const SearchResultsBase = new Lang.Class({
 
     updateSearch: function(providerResults, terms, callback) {
         this._terms = terms;
-
         if (providerResults.length == 0) {
             this._clearResultDisplay();
             this.actor.hide();


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