viewSelector, overview: Add search signals and connect them to hide/show
Hide the elements when the search entry is non-empty. Show them if the search is cancelled. https://bugzilla.gnome.org/show_bug.cgi?id=682050
This commit is contained in:
parent
bc8965fe63
commit
4b0ba8b7b8
@ -238,6 +238,17 @@ const Overview = new Lang.Class({
|
||||
opacity: 0 });
|
||||
this._overview.add_actor(this._messageTrayGhost);
|
||||
|
||||
this._viewSelector.connect('search-begin', Lang.bind(this,
|
||||
function() {
|
||||
this._dash.hide();
|
||||
this._thumbnailsBox.hide();
|
||||
}));
|
||||
this._viewSelector.connect('search-cancelled', Lang.bind(this,
|
||||
function() {
|
||||
this._dash.show();
|
||||
this._thumbnailsBox.show();
|
||||
}));
|
||||
|
||||
Main.layoutManager.connect('monitors-changed', Lang.bind(this, this._relayout));
|
||||
this._relayout();
|
||||
},
|
||||
|
@ -258,6 +258,7 @@ const ViewSelector = new Lang.Class({
|
||||
},
|
||||
|
||||
_searchCancelled: function() {
|
||||
this.emit('search-cancelled');
|
||||
this._showPage(this._showAppsButton.checked ? this._appsPage
|
||||
: this._workspacesPage);
|
||||
|
||||
@ -326,6 +327,7 @@ const ViewSelector = new Lang.Class({
|
||||
this._searchResults.startingSearch();
|
||||
}
|
||||
if (this.active) {
|
||||
this.emit('search-begin');
|
||||
this._entry.set_secondary_icon(this._activeIcon);
|
||||
|
||||
if (this._iconClickedId == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user