[gnome-music/wip/merge: 321/343] When updaiting album art update it for all items
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 321/343] When updaiting album art update it for all items
- Date: Thu, 25 Jul 2013 11:39:36 +0000 (UTC)
commit 2fb580bec64c3c1d3eb90a93db91b85fa3f9338c
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Mon Jul 22 00:30:14 2013 +0200
When updaiting album art update it for all items
This is not the most optimal fix, but it works
Fixes #91
gnomemusic/view.py | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index dd57ea6..e1949c9 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -188,7 +188,7 @@ class ViewContainer(Gtk.Stack):
[str(item.get_id()), "", title,
artist, self._symbolicIcon, item,
-1, self.errorIconName, False, True])
- GLib.idle_add(self._update_album_art, item, itr)
+ GLib.idle_add(self.show_album_art_data)
def _get_remaining_item_count(self):
count = -1
@@ -254,7 +254,14 @@ class Albums(ViewContainer):
def populate(self):
if grilo.tracker:
- GLib.idle_add(grilo.populate_albums, self._offset, self._add_item)
+ grilo.populate_albums(self._offset, self._add_item)
+
+ def show_album_art_data(self):
+ itr = self._model.get_iter_first()
+ while itr:
+ item = self._model.get_value(itr, 5)
+ GLib.idle_add(self._update_album_art, item, itr)
+ itr = self._model.iter_next(itr)
class Songs(ViewContainer):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]