[gnome-music] Don't draw spinners for albums



commit 14bd601c40f4f5e7433f0bb5629918accff2ca34
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Feb 10 17:39:07 2014 +0100

    Don't draw spinners for albums
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723765

 gnomemusic/view.py |    5 ++---
 libgd              |    2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 2a3a926..066230d 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -90,9 +90,7 @@ class ViewContainer(Stack):
             shadow_type=Gtk.ShadowType.NONE
         )
         self.view.set_view_type(Gd.MainViewType.ICON)
-        self.view.set_model(self._model)
         self.filter = self._model.filter_new(None)
-        self.view.set_model(self.filter)
         self.vadjustment = self.view.get_vadjustment()
         self.selection_toolbar = selection_toolbar
         box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
@@ -243,7 +241,7 @@ class ViewContainer(Stack):
                             [0, 1, 2, 3, 4, 5, 7, 8, 9, 10],
                             [str(item.get_id()), '', title,
                              artist, self._symbolicIcon, item,
-                             -1, icon_name, False, icon_name == self.errorIconName])
+                             0, icon_name, False, icon_name == self.errorIconName])
             GLib.idle_add(self._update_album_art, item, _iter)
 
         GLib.idle_add(add_new_item)
@@ -326,6 +324,7 @@ class Albums(ViewContainer):
     def populate(self):
         if grilo.tracker:
             GLib.idle_add(grilo.populate_albums, self._offset, self._add_item)
+            self.view.set_model(self.filter)
 
 
 class Songs(ViewContainer):
diff --git a/libgd b/libgd
index 62f9b8b..6bca681 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit 62f9b8b92599b38d986bd26d5780edd400d318c9
+Subproject commit 6bca681f549714171110e0b4ffa1f505627b348e


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