[the-board] [things] Avoid infinite play/pause switches on state changes
- From: Lucas Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [things] Avoid infinite play/pause switches on state changes
- Date: Fri, 28 Jan 2011 16:03:09 +0000 (UTC)
commit 81719dce59925b067651dceede6f9e22591ec923
Author: Lucas Rocha <lucasr gnome org>
Date: Fri Jan 28 15:49:57 2011 +0000
[things] Avoid infinite play/pause switches on state changes
src/js/ui/things/sound.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/js/ui/things/sound.js b/src/js/ui/things/sound.js
index e5d08ba..5c9afbf 100644
--- a/src/js/ui/things/sound.js
+++ b/src/js/ui/things/sound.js
@@ -648,6 +648,7 @@ SoundThing.prototype = {
case Tb.SoundPlayerState.DONE:
this._updateTimeLabel(this._player.duration);
+ this._playButton.toggled = false;
break;
case Tb.SoundPlayerState.ERROR:
@@ -657,8 +658,6 @@ SoundThing.prototype = {
default:
// do nothing
}
-
- this._playButton.toggled = this._player.playing;
},
enter : function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]