[gnome-music/wip/jfelder/gtk4-v3: 34/208] artcache: Fix icon lookup api call




commit f6d8261ce5dfdfa2662b397585c9ef5a9926b4bb
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Apr 11 23:19:44 2021 +0200

    artcache: Fix icon lookup api call

 gnomemusic/defaulticon.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/defaulticon.py b/gnomemusic/defaulticon.py
index 02c906c1d..8c43f2a81 100644
--- a/gnomemusic/defaulticon.py
+++ b/gnomemusic/defaulticon.py
@@ -120,8 +120,8 @@ class DefaultIcon(GObject.GObject):
     def _make_default_icon(
             self, icon_type: DefaultIconType, art_size: ArtSize, scale: int,
             dark: bool) -> cairo.ImageSurface:
-        icon_info = self._default_theme.lookup_icon_for_scale(
-            icon_type.value, art_size.width / 3, scale, 0)
+        icon_info = self._default_theme.lookup_icon(
+            icon_type.value, art_size.width / 3, scale, 0, 0)
         icon = icon_info.load_surface()
 
         round_shape = icon_type == DefaultIconType.ARTIST


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