[gnome-music] Revert "When updaiting album art update it for all items"



commit 0671961fcc99c043fe68fd4293c1d2a52dde9498
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Sat Aug 3 15:25:54 2013 +0800

    Revert "When updaiting album art update it for all items"
    
    This reverts commit 2fb580bec64c3c1d3eb90a93db91b85fa3f9338c.
    
    This commit loads the covers in Albums view multiple times. The workaround for
    resolve will now fix the bug fixed by this commit.

 gnomemusic/view.py |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 3367c05..4fe4f5b 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -189,7 +189,7 @@ class ViewContainer(Gtk.Stack):
                                 [str(item.get_id()), "", title,
                                  artist, self._symbolicIcon, item,
                                  -1, self.errorIconName, False, True])
-        GLib.idle_add(self.show_album_art_data)
+            GLib.idle_add(self._update_album_art, item, _iter)
 
     def _get_remaining_item_count(self):
         count = -1
@@ -259,14 +259,7 @@ class Albums(ViewContainer):
 
     def populate(self):
         if grilo.tracker:
-            grilo.populate_albums(self._offset, self._add_item)
-
-    def show_album_art_data(self):
-        _iter = self._model.get_iter_first()
-        while _iter:
-            item = self._model.get_value(_iter, 5)
-            GLib.idle_add(self._update_album_art, item, _iter)
-            _iter = self._model.iter_next(_iter)
+            GLib.idle_add(grilo.populate_albums, self._offset, self._add_item)
 
 
 class Songs(ViewContainer):


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