[gnome-shell] search-display: Remove search result count



commit 08e0485213c597ed9ca9ac6a26684e4b74b2b7a5
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Mar 2 00:19:18 2011 +0100

    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

 js/ui/searchDisplay.js |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js
index 7e9ba7a..ae7bce6 100644
--- a/js/ui/searchDisplay.js
+++ b/js/ui/searchDisplay.js
@@ -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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]