[gnome-music/wip/mschraal/gtk4: 66/80] IconTheme gtk4 fixes *incomplete*



commit 1697fe1c1a2e8c1dc8ffd7935ed968cff64a9cd1
Author: Marinus Schraal <mschraal gnome org>
Date:   Wed Apr 29 00:52:58 2020 +0200

    IconTheme gtk4 fixes *incomplete*
    
    should use get_for_display

 gnomemusic/albumartcache.py  | 2 +-
 gnomemusic/artistart.py      | 2 +-
 gnomemusic/coverpaintable.py | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/albumartcache.py b/gnomemusic/albumartcache.py
index 7c17d46a..6e2505b7 100644
--- a/gnomemusic/albumartcache.py
+++ b/gnomemusic/albumartcache.py
@@ -123,7 +123,7 @@ class DefaultIcon(GObject.GObject):
         MUSIC = 'folder-music-symbolic'
 
     _cache = {}
-    _default_theme = Gtk.IconTheme.get_default()
+    _default_theme = Gtk.IconTheme.new()
 
     def __init__(self):
         super().__init__()
diff --git a/gnomemusic/artistart.py b/gnomemusic/artistart.py
index 41716d0a..b8e9316c 100644
--- a/gnomemusic/artistart.py
+++ b/gnomemusic/artistart.py
@@ -87,7 +87,7 @@ class DefaultIcon(GObject.GObject):
         ARTIST = "avatar-default-symbolic"
 
     _cache = {}
-    _default_theme = Gtk.IconTheme.get_default()
+    _default_theme = Gtk.IconTheme.new()
 
     def __init__(self):
         super().__init__()
diff --git a/gnomemusic/coverpaintable.py b/gnomemusic/coverpaintable.py
index ca12c350..e66e4ecf 100644
--- a/gnomemusic/coverpaintable.py
+++ b/gnomemusic/coverpaintable.py
@@ -27,7 +27,7 @@ class CoverPaintable(GObject.GObject, Gdk.Paintable):
         degrees = pi / 180
         radius = 3
 
-        theme = Gtk.IconTheme.get_default()
+        theme = Gtk.IconTheme.new()
 
         pixbuf = theme.load_icon("content-loading-symbolic", w, 0)
         rect = Graphene.Rect().init(0, 0, width, height)


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