[gnome-music/wip/mschraal/artrework: 3/3] albumartcache: Uppercase	DefaultIcon.Type enum
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-music/wip/mschraal/artrework: 3/3] albumartcache: Uppercase	DefaultIcon.Type enum
- Date: Sun, 28 Jan 2018 14:02:22 +0000 (UTC)
commit de7f0c8e833d2eac005c82af699a0f383f4aa311
Author: Marinus Schraal <mschraal gnome org>
Date:   Tue Jan 23 00:54:01 2018 +0100
    albumartcache: Uppercase DefaultIcon.Type enum
 gnomemusic/albumartcache.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/albumartcache.py b/gnomemusic/albumartcache.py
index 2a1bca0..82157d1 100644
--- a/gnomemusic/albumartcache.py
+++ b/gnomemusic/albumartcache.py
@@ -141,8 +141,8 @@ class DefaultIcon(GObject.GObject):
     """Provides the symbolic fallback and loading icons."""
 
     class Type(Enum):
-        loading = 'content-loading-symbolic'
-        music = 'folder-music-symbolic'
+        LOADING = 'content-loading-symbolic'
+        MUSIC = 'folder-music-symbolic'
 
     _cache = {}
     _scale = 1
@@ -301,7 +301,7 @@ class Art(GObject.GObject):
 
     def _no_art_available(self):
         self._surface = DefaultIcon().get(
-            DefaultIcon.Type.music, self._size, self._scale)
+            DefaultIcon.Type.MUSIC, self._size, self._scale)
 
         self.emit('finished')
 
@@ -331,7 +331,7 @@ class Art(GObject.GObject):
     def surface(self):
         if self._surface is None:
             self._surface = DefaultIcon().get(
-                DefaultIcon.Type.loading, self._size, self._scale)
+                DefaultIcon.Type.LOADING, self._size, self._scale)
 
         return self._surface
 
@@ -369,7 +369,7 @@ class ArtImage(Art):
         self._scale = self._image.get_scale_factor()
 
         self._surface = DefaultIcon().get(
-            DefaultIcon.Type.loading, self._size, self._scale)
+            DefaultIcon.Type.LOADING, self._size, self._scale)
 
         self._image.set_from_surface(self._surface)
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]