[gnome-music/wip/mschraal/gtk4: 50/90] IconTheme gtk4 fixes *incomplete*



commit a621d446600fed686795089dc14b9d2cd111285d
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 535ff81b..dcddc456 100644
--- a/gnomemusic/albumartcache.py
+++ b/gnomemusic/albumartcache.py
@@ -124,7 +124,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 973c5369..f235bd46 100644
--- a/gnomemusic/artistart.py
+++ b/gnomemusic/artistart.py
@@ -89,7 +89,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]