[gnome-shell] volume: Don't set the visibility of the main icon



commit 9ebeb645705b5c1b02954f3c57fbc89197898344
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Dec 19 22:45:16 2012 -0500

    volume: Don't set the visibility of the main icon
    
    As the main icon is inside the actor, this is needless calculation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690539

 js/ui/status/volume.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js
index cf9e762..9f65d71 100644
--- a/js/ui/status/volume.js
+++ b/js/ui/status/volume.js
@@ -249,8 +249,7 @@ const Indicator = new Lang.Class({
 
     _syncVisibility: function() {
         this.actor.visible = this._hasPulseAudio;
-        this.mainIcon.visible = this._hasPulseAudio;
-        this._headphoneIcon.visible = this._hasPulseAudio && this._volumeMenu.hasHeadphones;
+        this._headphoneIcon.visible = this._volumeMenu.hasHeadphones;
     },
 
     _onScrollEvent: function(actor, event) {



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