[gnome-music/freeze-break: 93/107] view: Updates to Playlists view to match changes in grilo



commit aa3219b7af911241ad9a12febdcb64c4a57f16bb
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Sun Sep 8 20:01:35 2013 +0800

    view: Updates to Playlists view to match changes in grilo

 gnomemusic/view.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 83b0cd9..fda6da9 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -793,7 +793,7 @@ class Playlist(ViewContainer):
             self.iter_to_clean_model = self._model
         return False
 
-    def _add_item(self, item):
+    def _add_playlist_item(self, item):
         _iter = self.playlists_model.append()
         self._playlist_list[item] = {"iter": _iter, "albums": []}
         self.playlists_model.set(_iter, [2], [item])
@@ -841,11 +841,11 @@ class Playlist(ViewContainer):
                 GObject.TYPE_BOOLEAN
             )
             self.view.set_model(self._model)
-            playlists.parse_playlist(playlist, self._add_song)
+            playlists.parse_playlist(playlist, self._add_item)
             self.songs_count = 0
             self._update_songs_count()
 
-    def _add_song(self, item):
+    def _add_item(self, source, param, item):
         if not item:
             return
         self._offset += 1
@@ -897,4 +897,4 @@ class Playlist(ViewContainer):
 
     def populate(self):
         for item in self.playlists_list:
-            self._add_item(item)
+            self._add_playlist_item(item)


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