[gnome-shell] volume: Don't set the visibility of the main icon
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] volume: Don't set the visibility of the main icon
- Date: Fri, 21 Dec 2012 18:26:17 +0000 (UTC)
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]