[gnome-music/wip/mschraal/gtk4: 49/64] IconTheme gtk4 fixes *incomplete*



commit 4a1ebe06b8735bcf0d7a3e413685a49426c9a207
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 b56eb76b..ad096540 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)
         icon_pt = theme.lookup_icon(


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