[gnome-music/wip/merge: 199/343] player: fix shiffle mode
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 199/343] player: fix shiffle mode
- Date: Thu, 25 Jul 2013 11:29:42 +0000 (UTC)
commit 1ab04bf3a22229d744305428d89b978ef501e50c
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Tue Jul 16 19:16:17 2013 +0200
player: fix shiffle mode
gnomemusic/player.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 43c0992..0214703 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -157,7 +157,7 @@ class Player(GObject.GObject):
nextTrack = self.playlist.get_iter_first()
rows = self.playlist.iter_n_children(None)
for i in range(1, randint(1, rows)):
- self.playlist.iter_next(nextTrack)
+ nextTrack = self.playlist.iter_next(nextTrack)
return nextTrack
@@ -187,7 +187,7 @@ class Player(GObject.GObject):
previousTrack = self.playlist.get_iter_first()
rows = self.playlist.iter_n_children(None)
for i in range(1, randint(1, rows)):
- self.playlist.iter_next(previousTrack)
+ previousTrack = self.playlist.iter_next(previousTrack)
return previousTrack
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]