[gnome-music/wip/mschraal/texturecache-memory-size-improvements: 2/2] coverpaintable: Cleanup MediaArtLoader references
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/texturecache-memory-size-improvements: 2/2] coverpaintable: Cleanup MediaArtLoader references
- Date: Fri, 22 Apr 2022 09:25:22 +0000 (UTC)
commit 7754de222feffdff7b47fb95f27b915c01f3a2f1
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Apr 21 10:02:25 2022 +0200
coverpaintable: Cleanup MediaArtLoader references
Should have been part of the changes in 1bf208a59f.
gnomemusic/coverpaintable.py | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/gnomemusic/coverpaintable.py b/gnomemusic/coverpaintable.py
index 4519e6680..3a2d12382 100644
--- a/gnomemusic/coverpaintable.py
+++ b/gnomemusic/coverpaintable.py
@@ -30,7 +30,6 @@ import gi
gi.require_versions({"Gdk": "4.0", "Gtk": "4.0", "Gsk": "4.0"})
from gi.repository import Adw, Gsk, Gtk, GObject, Graphene, Gdk
-from gnomemusic.mediaartloader import MediaArtLoader
from gnomemusic.texturecache import TextureCache
from gnomemusic.utils import ArtSize, DefaultIconType
if typing.TYPE_CHECKING:
@@ -62,8 +61,6 @@ class CoverPaintable(GObject.GObject, Gdk.Paintable):
"""
super().__init__()
- self._art_loader = MediaArtLoader()
- self._art_loading_id = 0
self._art_size = art_size
self._coreobject: Optional[CoreObject] = None
self._icon_theme = Gtk.IconTheme.new().get_for_display(
@@ -171,9 +168,6 @@ class CoverPaintable(GObject.GObject, Gdk.Paintable):
self, coreobject: CoreObject,
uri: GObject.ParamSpecString) -> None:
thumbnail_uri = coreobject.props.thumbnail
- if self._art_loading_id != 0:
- self._art_loader.disconnect(self._art_loading_id)
- self._art_loading_id = 0
if thumbnail_uri == "generic":
self._texture = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]