search: Rename SearchResults to SearchResultsView

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/765
This commit is contained in:
Marco Trevisan (Treviño) 2019-10-16 11:31:44 +02:00
parent 20f4fc7c87
commit d0d1845bb6
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
/* exported SearchResultsView */
const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi; const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
const Signals = imports.signals; const Signals = imports.signals;
@ -409,7 +410,7 @@ var GridSearchResults = class extends SearchResultsBase {
}; };
Signals.addSignalMethods(GridSearchResults.prototype); Signals.addSignalMethods(GridSearchResults.prototype);
var SearchResults = class { var SearchResultsView = class {
constructor() { constructor() {
this.actor = new St.BoxLayout({ name: 'searchResults', this.actor = new St.BoxLayout({ name: 'searchResults',
vertical: true }); vertical: true });
@ -744,7 +745,7 @@ var SearchResults = class {
return description.replace(this._highlightRegex, '<b>$1</b>'); return description.replace(this._highlightRegex, '<b>$1</b>');
} }
}; };
Signals.addSignalMethods(SearchResults.prototype); Signals.addSignalMethods(SearchResultsView.prototype);
var ProviderInfo = GObject.registerClass( var ProviderInfo = GObject.registerClass(
class ProviderInfo extends St.Button { class ProviderInfo extends St.Button {

View File

@ -172,7 +172,7 @@ var ViewSelector = class {
this._appsPage = this._addPage(this.appDisplay.actor, this._appsPage = this._addPage(this.appDisplay.actor,
_("Applications"), 'view-app-grid-symbolic'); _("Applications"), 'view-app-grid-symbolic');
this._searchResults = new Search.SearchResults(); this._searchResults = new Search.SearchResultsView();
this._searchPage = this._addPage(this._searchResults.actor, this._searchPage = this._addPage(this._searchResults.actor,
_("Search"), 'edit-find-symbolic', _("Search"), 'edit-find-symbolic',
{ a11yFocus: this._entry }); { a11yFocus: this._entry });