[gnome-music/gnome-3-10] Don't draw spinners for albums
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/gnome-3-10] Don't draw spinners for albums
- Date: Wed, 19 Feb 2014 15:28:12 +0000 (UTC)
commit 7d5dd0cfeb88d3c65932c8f36f00be0db041d5aa
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 ++---
1 files changed, 2 insertions(+), 3 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):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]