[gnome-music] Fixed Play-Pause button
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Fixed Play-Pause button
- Date: Tue, 30 Apr 2013 21:09:36 +0000 (UTC)
commit eb9054142083e74e08e4cc04cca62955194d4648
Author: Shivani Poddar <shivani poddar92 gmail com>
Date: Wed May 1 02:35:41 2013 +0530
Fixed Play-Pause button
Signed-off-by: Seif Lotfy <seif lotfy com>
src/player.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/player.js b/src/player.js
index 3ac09cf..2bc5bd7 100644
--- a/src/player.js
+++ b/src/player.js
@@ -55,11 +55,13 @@ const PlayPauseButton = new Lang.Class({
},
set_playing: function() {
+ this.set_active(true);
this.set_image(this.pause_image);
this.show_all();
},
set_paused: function() {
+ this.set_active(false);
this.set_image(this.play_image);
this.show_all();
},
@@ -189,7 +191,7 @@ const Player = new Lang.Class({
if (this.timeout) {
GLib.source_remove(this.timeout);
}
- this.play_btn.set_active(true);
+ this.play_btn.set_playing();
if(this.player.get_state(1)[1] != Gst.State.PAUSED) {
this.stop();
}
@@ -202,7 +204,6 @@ const Player = new Lang.Class({
pause: function () {
this.player.set_state(Gst.State.PAUSED);
- this.play_btn.set_active(false);
},
stop: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]