search-display: Remove search result count
Currently the total number of matches for a particular section is displayed on the left of the section's header. While it made sense in the old layout where it was close to the section's title, it is now rather disconnected, and has been removed in current mockups. https://bugzilla.gnome.org/show_bug.cgi?id=643632
This commit is contained in:
parent
04afea76e3
commit
08e0485213
@ -249,12 +249,7 @@ SearchResults.prototype = {
|
||||
y_fill: true });
|
||||
titleButton.connect('clicked', Lang.bind(this, function () { this._onHeaderClicked(provider); }));
|
||||
providerBox.add(titleButton);
|
||||
let titleBox = new St.BoxLayout();
|
||||
titleButton.set_child(titleBox);
|
||||
let title = new St.Label({ text: provider.title });
|
||||
let count = new St.Label();
|
||||
titleBox.add(title, { expand: true });
|
||||
titleBox.add(count);
|
||||
titleButton.set_child(new St.Label({ text: provider.title }));
|
||||
|
||||
let resultDisplayBin = new St.Bin({ style_class: 'search-section-results',
|
||||
x_fill: true,
|
||||
@ -267,8 +262,7 @@ SearchResults.prototype = {
|
||||
resultDisplayBin.set_child(resultDisplay.actor);
|
||||
|
||||
this._providerMeta.push({ actor: providerBox,
|
||||
resultDisplay: resultDisplay,
|
||||
count: count });
|
||||
resultDisplay: resultDisplay });
|
||||
this._content.add(providerBox);
|
||||
},
|
||||
|
||||
@ -322,7 +316,6 @@ SearchResults.prototype = {
|
||||
let meta = this._metaForProvider(provider);
|
||||
meta.actor.show();
|
||||
meta.resultDisplay.renderResults(providerResults, terms);
|
||||
meta.count.set_text('' + providerResults.length);
|
||||
}
|
||||
|
||||
if (this._selectedOpenSearchButton == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user