[gnome-music/wip/mschraal/gtk4-v3: 19/187] artcache: IconTheme API fix (FIXME)




commit 9e2d33775a511f6567d5d129756e9d5c004b4a9c
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Apr 11 17:00:32 2021 +0200

    artcache: IconTheme API fix (FIXME)
    
    Should use get_for_display?

 gnomemusic/defaulticon.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/defaulticon.py b/gnomemusic/defaulticon.py
index 18f429e99..02c906c1d 100644
--- a/gnomemusic/defaulticon.py
+++ b/gnomemusic/defaulticon.py
@@ -106,7 +106,7 @@ class DefaultIcon(GObject.GObject):
     _cache: Dict[
         Tuple[DefaultIconType, ArtSize, int, bool], cairo.ImageSurface] = {}
 
-    _default_theme = Gtk.IconTheme.get_default()
+    _default_theme = Gtk.IconTheme.new()
 
     def __init__(self, widget: Gtk.Widget) -> None:
         """Initialize DefaultIcon


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