[gnome-shell] location: Only show menu when geolocation is in use



commit 5b624a34b8be027bf08962782bbea7369a832815
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Aug 9 16:38:20 2014 +0100

    location: Only show menu when geolocation is in use
    
    Users can now toggle geolocation off/on from privacy panel of
    gnome-control-center so we don't need to clutter the menu with a
    settings that most users won't touch most of the time.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=731122

 js/ui/status/location.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/status/location.js b/js/ui/status/location.js
index 052f77c..c6694d1 100644
--- a/js/ui/status/location.js
+++ b/js/ui/status/location.js
@@ -96,10 +96,12 @@ const Indicator = new Lang.Class({
     _syncIndicator: function() {
         if (this._proxy == null) {
             this._indicator.visible = false;
+            this._item.actor.visible = false;
             return;
         }
 
         this._indicator.visible = this._proxy.InUse;
+        this._item.actor.visible = this._indicator.visible;
         this._updateMenuLabels();
     },
 


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