[gnome-music/wip/merge: 196/343] player: correctly verify for playing state
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 196/343] player: correctly verify for playing state
- Date: Thu, 25 Jul 2013 11:29:27 +0000 (UTC)
commit d9c2b013724966efba7e57fb7feb3d07ac2e1cdd
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Tue Jul 16 19:06:22 2013 +0200
player: correctly verify for playing state
gnomemusic/player.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 4686f5f..07742c9 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -215,7 +215,7 @@ class Player(GObject.GObject):
return False
def _syncPlaying(self):
- image = self._playImage if self.playing is True else self._pauseImage
+ image = self._playImage if self.getPlaying() else self._pauseImage
if self.playBtn.get_image() != image:
self.playBtn.set_image(image)
@@ -430,7 +430,7 @@ class Player(GObject.GObject):
return "%s:%s" % (minutes, seconds)
def _onPlayBtnClicked(self, btn):
- if self.playing:
+ if self.getPlaying():
self.pause()
else:
self.play()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]