overview: Add API to remove search providers

As extensions are now expected to provide a "disable" function,
they need to remove search providers they added. Implement the
removal functionality and add a public removeSearchProvider()
method.

https://bugzilla.gnome.org/show_bug.cgi?id=657548
This commit is contained in:
Philippe Normand
2011-08-28 13:20:37 +02:00
committed by Florian Müllner
parent 8b796e745d
commit 595be5083c
4 changed files with 34 additions and 1 deletions

View File

@ -237,6 +237,10 @@ Overview.prototype = {
this._viewSelector.addSearchProvider(provider);
},
removeSearchProvider: function(provider) {
this._viewSelector.removeSearchProvider(provider);
},
setMessage: function(text, undoCallback, undoLabel) {
if (this.isDummy)
return;