Remove builtin settings search provider

It is now provided as a remote provider by gnome-control-center.

https://bugzilla.gnome.org/show_bug.cgi?id=690824
This commit is contained in:
Giovanni Campagna
2012-12-28 18:03:13 +01:00
parent 824fbe09c2
commit 3044a6b517
5 changed files with 4 additions and 113 deletions

View File

@ -366,44 +366,6 @@ const AppSearchProvider = new Lang.Class({
}
});
const SettingsSearchProvider = new Lang.Class({
Name: 'SettingsSearchProvider',
_init: function() {
this.appInfo = Gio.DesktopAppInfo.new('gnome-control-center.desktop');
this._appSys = Shell.AppSystem.get_default();
},
getResultMetas: function(prefs, callback) {
let metas = [];
for (let i = 0; i < prefs.length; i++) {
let pref = prefs[i];
metas.push({ 'id': pref,
'name': pref.get_name(),
'createIcon': function() { return null; }
});
}
callback(metas);
},
getInitialResultSet: function(terms) {
this.searchSystem.pushResults(this, this._appSys.search_settings(terms));
},
getSubsearchResultSet: function(previousResults, terms) {
this.searchSystem.pushResults(this, this._appSys.search_settings(terms));
},
activateResult: function(pref) {
pref.activate();
},
launchSearch: function(terms) {
// FIXME: this should be a remote search provider
this.appInfo.launch([], global.create_app_launch_context());
}
});
const AppIcon = new Lang.Class({
Name: 'AppIcon',
Extends: IconGrid.BaseIcon,