[gnome-music/wip/merge: 171/343] widgets: get_iter_first returns iter



commit e30d0ad938cb405027b33bdeee6cece66cd8462d
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue Jul 16 17:32:54 2013 +0200

    widgets: get_iter_first returns iter

 gnomemusic/widgets.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index f35f868..3f40fc3 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -266,8 +266,8 @@ class AlbumWidget(Gtk.EventBox):
         if (playlist != self.model):
             return False
         currentSong = playlist.get_value(currentIter, 5)
-        [res, iter] = playlist.get_iter_first()
-        if res is not None:
+        iter = playlist.get_iter_first()
+        if iter is not None:
             return False
         songPassed = False
         while True:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]