[the-board: 8/8] [things] Always show time label if Sound thing has a filename



commit 26290cebf8026b6718a16daeda23f471d9ff4452
Author: Lucas Rocha <lucasr gnome org>
Date:   Thu Jan 27 17:59:43 2011 +0000

    [things] Always show time label if Sound thing has a filename

 src/js/ui/things/sound.js |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/js/ui/things/sound.js b/src/js/ui/things/sound.js
index 816845a..e5d08ba 100644
--- a/src/js/ui/things/sound.js
+++ b/src/js/ui/things/sound.js
@@ -533,14 +533,10 @@ SoundThing.prototype = {
     },
 
     _updateSoundControlsVisibility : function() {
-        let hoverOrActive = this.hover || this.active;
-
         let actorsToShow = [];
         let actorsToHide = [];
 
-        let showTimeLabel =
-            (this._recorder || this._soundFilename) &&
-            (hoverOrActive || this._player.playing);
+        let showTimeLabel = this._recorder || this._soundFilename;
 
         if (showTimeLabel) {
             actorsToShow.push(this._timeLabel);
@@ -549,7 +545,8 @@ SoundThing.prototype = {
         }
 
         let showPlaybackBox =
-            !this._recorder && this._soundFilename && hoverOrActive;
+            !this._recorder && this._soundFilename &&
+            (this.hover || this.active);
 
         if (showPlaybackBox) {
             actorsToShow.push(this._playbackBox);



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