[gnome-music/wip/mschraal/assorted-cleanups: 4/14] albumcover: Remove old delayed loading code
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/assorted-cleanups: 4/14] albumcover: Remove old delayed loading code
- Date: Thu, 26 Mar 2020 13:37:28 +0000 (UTC)
commit 27b8cf2d42cae0ec92bdaf3faec1bd5c92d06ed6
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 88da698b..91a127a6 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):
@@ -135,8 +131,6 @@ class CoverStack(Gtk.Stack):
self._active_child = self.props.visible_child_name
self._art = None
- self.emit('updated')
-
def _on_destroy(self, widget):
# If the CoverStack is destroyed while the art is updated,
# an error can be coccur once the art is retrieved because
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]