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



commit a33d7005bb578060c172613ebfb75094f36992df
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 efbc5b18..9bd31e6b 100644
--- a/gnomemusic/widgets/albumcover.py
+++ b/gnomemusic/widgets/albumcover.py
@@ -38,8 +38,6 @@ class AlbumCover(Gtk.FlowBoxChild):
     Includes cover, album title, artist & selection mode checkmark.
     """
 
-    _nr_albums = 0
-
     __gtype_name__ = 'AlbumCover'
 
     _cover_stack = Gtk.Template.Child()
@@ -59,8 +57,6 @@ class AlbumCover(Gtk.FlowBoxChild):
         """
         super().__init__()
 
-        AlbumCover._nr_albums += 1
-
         self._corealbum = corealbum
         self._retrieved = False
 
@@ -89,9 +85,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
 
@@ -118,7 +111,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 72d0a3af..5ac1c773 100644
--- a/gnomemusic/widgets/coverstack.py
+++ b/gnomemusic/widgets/coverstack.py
@@ -37,10 +37,6 @@ class CoverStack(Gtk.Stack):
 
     __gtype_name__ = 'CoverStack'
 
-    __gsignals__ = {
-        'updated': (GObject.SignalFlags.RUN_FIRST, None, ())
-    }
-
     _default_icon = DefaultIcon()
 
     def __init__(self, size=Art.Size.MEDIUM):
@@ -132,5 +128,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]