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



commit 9e1c91e3a20e658168c5f2cec73a9b599d04385a
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 |  8 --------
 2 files changed, 19 deletions(-)
---
diff --git a/gnomemusic/widgets/albumcover.py b/gnomemusic/widgets/albumcover.py
index 47363b41..f646296e 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)
-
         self._corealbum.connect(
             "notify::thumbnail", self._on_thumbnail_changed)
 
@@ -149,7 +142,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 4b9fd35a..9b8b9c35 100644
--- a/gnomemusic/widgets/coverstack.py
+++ b/gnomemusic/widgets/coverstack.py
@@ -40,10 +40,6 @@ class CoverStack(Gtk.Stack):
 
     __gtype_name__ = 'CoverStack'
 
-    __gsignals__ = {
-        'updated': (GObject.SignalFlags.RUN_FIRST, None, ())
-    }
-
     _default_icon = DefaultIcon()
 
     def __repr__(self):
@@ -167,8 +163,6 @@ class CoverStack(Gtk.Stack):
         self._active_child = self.props.visible_child_name
         self._art = None
 
-        self.emit('updated')
-
     @log
     def _art_retrieved(self, klass):
         if self._timeout:
@@ -184,5 +178,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]