overview: Move search entry to ControlsManager
Next commit will tie all these widgets up with a single layout manager, and we need to control the search entry position. Move it to OverviewControls.ControlsManager. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1624>
This commit is contained in:

committed by
Marge Bot

parent
d02612e790
commit
301686ee5f
@ -92,26 +92,8 @@ class OverviewActor extends St.BoxLayout {
|
||||
});
|
||||
this.add_actor(panelGhost);
|
||||
|
||||
this._searchEntry = new St.Entry({
|
||||
style_class: 'search-entry',
|
||||
/* Translators: this is the text displayed
|
||||
in the search entry when no search is
|
||||
active; it should not exceed ~30
|
||||
characters. */
|
||||
hint_text: _('Type to search'),
|
||||
track_hover: true,
|
||||
can_focus: true,
|
||||
});
|
||||
this._searchEntry.set_offscreen_redirect(Clutter.OffscreenRedirect.ALWAYS);
|
||||
let searchEntryBin = new St.Bin({
|
||||
child: this._searchEntry,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
});
|
||||
this.add_actor(searchEntryBin);
|
||||
|
||||
this._controls = new OverviewControls.ControlsManager(this._searchEntry);
|
||||
|
||||
// Add our same-line elements after the search entry
|
||||
this._controls = new OverviewControls.ControlsManager();
|
||||
this.add_child(this._controls);
|
||||
}
|
||||
|
||||
@ -120,7 +102,7 @@ class OverviewActor extends St.BoxLayout {
|
||||
}
|
||||
|
||||
get searchEntry() {
|
||||
return this._searchEntry;
|
||||
return this._controls.searchEntry;
|
||||
}
|
||||
|
||||
get viewSelector() {
|
||||
|
Reference in New Issue
Block a user