search: Fix previous commit
It was pushed by accident before it was tested...
This commit is contained in:
parent
9cd7ea9371
commit
4965b1ca7b
@ -894,8 +894,8 @@ const AppSearchProvider = new Lang.Class({
|
|||||||
callback(this._appSys.initial_search(terms));
|
callback(this._appSys.initial_search(terms));
|
||||||
},
|
},
|
||||||
|
|
||||||
getSubsearchResultSet: function(terms, callback, cancellable) {
|
getSubsearchResultSet: function(previousResults, terms, callback, cancellable) {
|
||||||
callbacl(this._appSys.subsearch(previousResults, terms));
|
callback(this._appSys.subsearch(previousResults, terms));
|
||||||
},
|
},
|
||||||
|
|
||||||
activateResult: function(result) {
|
activateResult: function(result) {
|
||||||
|
@ -249,7 +249,7 @@ const RemoteSearchProvider = new Lang.Class({
|
|||||||
cancellable);
|
cancellable);
|
||||||
},
|
},
|
||||||
|
|
||||||
getSubsearchResultSet: function(previousResults, newTerms, cancellable) {
|
getSubsearchResultSet: function(previousResults, newTerms, callback, cancellable) {
|
||||||
this.proxy.GetSubsearchResultSetRemote(previousResults, newTerms,
|
this.proxy.GetSubsearchResultSetRemote(previousResults, newTerms,
|
||||||
Lang.bind(this, this._getResultsFinished, callback),
|
Lang.bind(this, this._getResultsFinished, callback),
|
||||||
cancellable);
|
cancellable);
|
||||||
|
@ -112,8 +112,8 @@ const SearchSystem = new Lang.Class({
|
|||||||
|
|
||||||
if (isSubSearch) {
|
if (isSubSearch) {
|
||||||
this._providers.forEach(Lang.bind(this, function(provider) {
|
this._providers.forEach(Lang.bind(this, function(provider) {
|
||||||
let previousResults = previousResults[provider.id];
|
let previousProviderResults = previousResults[provider.id];
|
||||||
provider.getSubsearchResultSet(previousResults, terms, Lang.bind(this, this._gotResults, provider), this._cancellable);
|
provider.getSubsearchResultSet(previousProviderResults, terms, Lang.bind(this, this._gotResults, provider), this._cancellable);
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
this._providers.forEach(Lang.bind(this, function(provider) {
|
this._providers.forEach(Lang.bind(this, function(provider) {
|
||||||
|
Loading…
Reference in New Issue
Block a user