[gnome-music/wip/merge: 197/343] player: set correct images for play button
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 197/343] player: set correct images for play button
- Date: Thu, 25 Jul 2013 11:29:32 +0000 (UTC)
commit 1f1ac89f7eeb187122c1d9ee75757ef80a47de4c
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Tue Jul 16 19:09:16 2013 +0200
player: set correct images for play button
gnomemusic/player.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 07742c9..9fd9c2c 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.getPlaying() else self._pauseImage
+ image = self._pauseImage if self.getPlaying() else self._playImage
if self.playBtn.get_image() != image:
self.playBtn.set_image(image)
@@ -310,15 +310,16 @@ class Player(GObject.GObject):
def pause(self):
if self.timeout:
GLib.source_remove(self.timeout)
- self.timeout = 0
+ self.timeout = None
self.player.set_state(Gst.State.PAUSED)
#self._dbusImpl.emit_property_changed('PlaybackStatus', GLib.Variant.new('s', 'Paused'))
+ self.emit('playing-changed')
def stop(self):
if self.timeout:
GLib.source_remove(self.timeout)
- self.timeout = 0
+ self.timeout = None
self.player.set_state(Gst.State.NULL)
#self._dbusImpl.emit_property_changed('PlaybackStatus', GLib.Variant.new('s', 'Stopped'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]