search: Don't expand search when clicking section headers
Currently section headers in the search view are reactive and run the corresponding provider's expandSearch() function when clicked, which should launch an external program displaying all search results for the section. Unfortunately it is only implemented for the "Settings" provider, and does not work properly (as it ignores the search and just launches System Settings). Also current mockups deemphasize the section header, making the feature pretty much indiscoverable (except by accident when interfering with swipe-scrolling). In conclusion, the feature does not make much sense in its current form, so remove it. https://bugzilla.gnome.org/show_bug.cgi?id=643632
This commit is contained in:
@ -243,13 +243,9 @@ SearchResults.prototype = {
|
||||
createProviderMeta: function(provider) {
|
||||
let providerBox = new St.BoxLayout({ style_class: 'search-section',
|
||||
vertical: true });
|
||||
let titleButton = new St.Button({ style_class: 'search-section-header',
|
||||
reactive: true,
|
||||
x_fill: true,
|
||||
y_fill: true });
|
||||
titleButton.connect('clicked', Lang.bind(this, function () { this._onHeaderClicked(provider); }));
|
||||
providerBox.add(titleButton);
|
||||
titleButton.set_child(new St.Label({ text: provider.title }));
|
||||
let title = new St.Label({ style_class: 'search-section-header',
|
||||
text: provider.title });
|
||||
providerBox.add(title);
|
||||
|
||||
let resultDisplayBin = new St.Bin({ style_class: 'search-section-results',
|
||||
x_fill: true,
|
||||
@ -324,10 +320,6 @@ SearchResults.prototype = {
|
||||
return true;
|
||||
},
|
||||
|
||||
_onHeaderClicked: function(provider) {
|
||||
provider.expandSearch(this._searchSystem.getTerms());
|
||||
},
|
||||
|
||||
_modifyActorSelection: function(resultDisplay, up) {
|
||||
let success;
|
||||
let index = resultDisplay.getSelectionIndex();
|
||||
|
Reference in New Issue
Block a user