[gnome-music/wip/mschraal/gtk4: 97/141] art: Disable surface usage



commit 697bef08ea308874c1a2dc85c2c0e99821a7c09a
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Oct 31 14:09:18 2019 +0100

    art: Disable surface usage

 gnomemusic/albumartcache.py      | 11 ++++++-----
 gnomemusic/widgets/coverstack.py |  6 +++---
 2 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/gnomemusic/albumartcache.py b/gnomemusic/albumartcache.py
index fbfd1f0f..93b6bf73 100644
--- a/gnomemusic/albumartcache.py
+++ b/gnomemusic/albumartcache.py
@@ -255,8 +255,9 @@ class Art(GObject.GObject):
         self._no_art_available()
 
     def _no_art_available(self):
-        self._surface = DefaultIcon().get(
-            DefaultIcon.Type.MUSIC, self._size, self._scale)
+        self._surface = None
+        # self._surface = DefaultIcon().get(
+        #     DefaultIcon.Type.MUSIC, self._size, self._scale)
 
         self.emit('finished')
 
@@ -291,9 +292,9 @@ class Art(GObject.GObject):
 
     @GObject.Property
     def surface(self):
-        if self._surface is None:
-            self._surface = DefaultIcon().get(
-                DefaultIcon.Type.LOADING, self._size, self._scale)
+        # if self._surface is None:
+        #     self._surface = DefaultIcon().get(
+        #         DefaultIcon.Type.LOADING, self._size, self._scale)
 
         return self._surface
 
diff --git a/gnomemusic/widgets/coverstack.py b/gnomemusic/widgets/coverstack.py
index 72d0a3af..2216176e 100644
--- a/gnomemusic/widgets/coverstack.py
+++ b/gnomemusic/widgets/coverstack.py
@@ -86,9 +86,9 @@ class CoverStack(Gtk.Stack):
         """
         self._size = value
 
-        icon = self._default_icon.get(
-            DefaultIcon.Type.LOADING, self.props.size, self.props.scale_factor)
-        self._loading_cover.props.surface = icon
+        # icon = self._default_icon.get(
+        #     DefaultIcon.Type.LOADING, self.props.size, self.props.scale_factor)
+        # self._loading_cover.props.surface = icon
 
     def update(self, coresong):
         """Update the stack with the given CoreSong


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]