[gnome-music/wip/mschraal/async-queue: 5/8] artcache: Rename DefaultIcon.Type




commit f6954f69664b53f55d36ab03cf11139d7fad5b16
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]