[gnome-music/wip/mschraal/async-queue: 15/18] artcache: Rename DefaultIcon.Type
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/async-queue: 15/18] artcache: Rename DefaultIcon.Type
- Date: Fri, 13 Aug 2021 22:23:23 +0000 (UTC)
commit 3fceea0ebe54df9394a772c4344404699131006c
Author: Marinus Schraal <mschraal gnome org>
Date: Wed Aug 11 14:49:28 2021 +0200
artcache: Rename DefaultIcon.Type
Type.ALBUM better covers the meaning than Type.MUSIC for the default
icons.
gnomemusic/artcache.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/artcache.py b/gnomemusic/artcache.py
index 49f94a3b6..0641202ee 100644
--- a/gnomemusic/artcache.py
+++ b/gnomemusic/artcache.py
@@ -101,8 +101,8 @@ class DefaultIcon(GObject.GObject):
"""Provides the symbolic fallback icons."""
class Type(Enum):
+ ALBUM = "folder-music-symbolic"
ARTIST = "avatar-default-symbolic"
- MUSIC = "folder-music-symbolic"
_cache: Dict[
Tuple["DefaultIcon.Type", ArtSize, int, bool], cairo.Surface] = {}
@@ -185,7 +185,7 @@ class ArtCache(GObject.GObject):
elif (isinstance(coreobject, CoreAlbum)
or isinstance(coreobject, CoreSong)):
self._default_icon = DefaultIcon().get(
- DefaultIcon.Type.MUSIC, self._size, self._scale)
+ DefaultIcon.Type.ALBUM, self._size, self._scale)
thumbnail_uri = coreobject.props.thumbnail
if thumbnail_uri == "generic":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]