search: Rename SearchResults to SearchResultsView
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/765
This commit is contained in:
parent
20f4fc7c87
commit
d0d1845bb6
@ -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 {
|
||||||
|
@ -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 });
|
||||||
|
Loading…
Reference in New Issue
Block a user