[gnome-shell] appDisplay: Don't show page indicators if there's only one page



commit e68b648a33661562abbcc1061a6a2a43c886e455
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Sep 3 12:07:28 2013 +0200

    appDisplay: Don't show page indicators if there's only one page
    
    It doesn't make sense to show the indicators in that case, so
    don't show them. This has been the design in the first place,
    but the code that did that was lost at some point during review ...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707363

 js/ui/appDisplay.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index bc4afee..10d10d1 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -224,6 +224,7 @@ const PageIndicators = new Lang.Class({
                 children[i].destroy();
         }
         this._nPages = nPages;
+        this.actor.visible = (this._nPages > 1);
     },
 
     setCurrentPage: function(currentPage) {


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