[gnome-music/wip/mschraal/gtk4: 38/81] art: Disable surface usage



commit 552a64318d6f3cc47745cb3dfa322e2945465d3b
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]