[gnome-music/wip/mschraal/coresong-thumbnail-prop: 4/8] albumcover: Remove old delayed loading code



commit b0cc6ce3306a3a32a3b8b494bb792bd9992715f9
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Dec 5 17:52:29 2019 +0100

    albumcover: Remove old delayed loading code

 gnomemusic/widgets/albumcover.py | 11 -----------
 gnomemusic/widgets/coverstack.py |  6 ------
 2 files changed, 17 deletions(-)
---
diff --git a/gnomemusic/widgets/albumcover.py b/gnomemusic/widgets/albumcover.py
index 7b9cfaa7..bd895893 100644
--- a/gnomemusic/widgets/albumcover.py
+++ b/gnomemusic/widgets/albumcover.py
@@ -39,8 +39,6 @@ class AlbumCover(Gtk.FlowBoxChild):
     Includes cover, album title, artist & selection mode checkmark.
     """
 
-    _nr_albums = 0
-
     __gtype_name__ = 'AlbumCover'
 
     _cover_stack = Gtk.Template.Child()
@@ -65,8 +63,6 @@ class AlbumCover(Gtk.FlowBoxChild):
         """
         super().__init__()
 
-        AlbumCover._nr_albums += 1
-
         self._corealbum = corealbum
         self._retrieved = False
 
@@ -97,9 +93,6 @@ class AlbumCover(Gtk.FlowBoxChild):
 
         self.show()
 
-        self._update_cover_id = self._cover_stack.connect(
-            "updated", self._on_cover_stack_updated)
-
     def retrieve(self):
         """Start retrieving the actual album cover
 
@@ -138,7 +131,3 @@ class AlbumCover(Gtk.FlowBoxChild):
         tooltip.set_custom(self._tooltip)
 
         return True
-
-    def _on_cover_stack_updated(self, cover_stack):
-        AlbumCover._nr_albums -= 1
-        self._cover_stack.disconnect(self._update_cover_id)
diff --git a/gnomemusic/widgets/coverstack.py b/gnomemusic/widgets/coverstack.py
index ae9eff81..1358a2c5 100644
--- a/gnomemusic/widgets/coverstack.py
+++ b/gnomemusic/widgets/coverstack.py
@@ -38,10 +38,6 @@ class CoverStack(Gtk.Stack):
 
     __gtype_name__ = 'CoverStack'
 
-    __gsignals__ = {
-        'updated': (GObject.SignalFlags.RUN_FIRST, None, ())
-    }
-
     _default_icon = DefaultIcon()
 
     def __repr__(self):
@@ -140,5 +136,3 @@ class CoverStack(Gtk.Stack):
 
         self._active_child = self.props.visible_child_name
         self._art = None
-
-        self.emit('updated')


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