diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 7f92d12fd..8cba94e59 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -509,11 +509,11 @@ const AppSearchProvider = new Lang.Class({ }, getInitialResultSet: function(terms) { - this.searchSystem.pushResults(this, this._appSys.initial_search(terms)); + this.searchSystem.setResults(this, this._appSys.initial_search(terms)); }, getSubsearchResultSet: function(previousResults, terms) { - this.searchSystem.pushResults(this, this._appSys.subsearch(previousResults, terms)); + this.searchSystem.setResults(this, this._appSys.subsearch(previousResults, terms)); }, activateResult: function(app) { diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js index 3d0c759b8..3aa74e488 100644 --- a/js/ui/remoteSearch.js +++ b/js/ui/remoteSearch.js @@ -205,7 +205,7 @@ const RemoteSearchProvider = new Lang.Class({ _getResultsFinished: function(results, error) { if (error) return; - this.searchSystem.pushResults(this, results[0]); + this.searchSystem.setResults(this, results[0]); }, getInitialResultSet: function(terms) { @@ -217,7 +217,7 @@ const RemoteSearchProvider = new Lang.Class({ this._cancellable); } catch(e) { log('Error calling GetInitialResultSet for provider %s: %s'.format(this.id, e.toString())); - this.searchSystem.pushResults(this, []); + this.searchSystem.setResults(this, []); } }, @@ -230,7 +230,7 @@ const RemoteSearchProvider = new Lang.Class({ this._cancellable); } catch(e) { log('Error calling GetSubsearchResultSet for provider %s: %s'.format(this.id, e.toString())); - this.searchSystem.pushResults(this, []); + this.searchSystem.setResults(this, []); } }, diff --git a/js/ui/search.js b/js/ui/search.js index 3dd59d720..03348b2d8 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -51,7 +51,7 @@ const SearchSystem = new Lang.Class({ this._previousResults = []; }, - pushResults: function(provider, results) { + setResults: function(provider, results) { let i = this._providers.indexOf(provider); if (i == -1) return; diff --git a/js/ui/wanda.js b/js/ui/wanda.js index 3d5d56898..713f4cdca 100644 --- a/js/ui/wanda.js +++ b/js/ui/wanda.js @@ -134,9 +134,9 @@ const WandaSearchProvider = new Lang.Class({ getInitialResultSet: function(terms) { if (terms.join(' ') == MAGIC_FISH_KEY) { - this.searchSystem.pushResults(this, [ FISH_NAME ]); + this.searchSystem.setResults(this, [ FISH_NAME ]); } else { - this.searchSystem.pushResults(this, []); + this.searchSystem.setResults(this, []); } },