[gnome-music/wip/mschraal/gtk4: 15/80] art: Disable surface usage



commit b6333853e623ac293f0e4411f2016b453b48c9ba
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 8f454275..ff206e5c 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 91a127a6..66b337ae 100644
--- a/gnomemusic/widgets/coverstack.py
+++ b/gnomemusic/widgets/coverstack.py
@@ -84,9 +84,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]