[gnome-music/wip/mschraal/gtk4: 21/58] art: Disable surface usage



commit 2f964325c68645993bf8d96310a6149c86180323
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 75e90f52..f82d6038 100644
--- a/gnomemusic/albumartcache.py
+++ b/gnomemusic/albumartcache.py
@@ -280,8 +280,9 @@ class Art(GObject.GObject):
 
     @log
     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')
 
@@ -318,9 +319,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 ae9eff81..6cbdfa52 100644
--- a/gnomemusic/widgets/coverstack.py
+++ b/gnomemusic/widgets/coverstack.py
@@ -91,9 +91,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
 
     @log
     def update(self, coresong):


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