[gnome-music/wip/jfelder/gtk4-v3: 105/115] coverpaintable: Get IconTheme for the display




commit afbe1ef0318ec41b6fe142641c2a02beb16cc37b
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Feb 5 16:00:39 2022 +0100

    coverpaintable: Get IconTheme for the display

 gnomemusic/coverpaintable.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/coverpaintable.py b/gnomemusic/coverpaintable.py
index 4507bf6e3..2d0b21cfc 100644
--- a/gnomemusic/coverpaintable.py
+++ b/gnomemusic/coverpaintable.py
@@ -9,14 +9,14 @@ class CoverPaintable(GObject.GObject, Gdk.Paintable):
 
     __gtype_name__ = "CoverPaintable"
 
-    _icon_theme = Gtk.IconTheme.new()
-
     def __init__(
             self, art_size, widget, icon_type=DefaultIconType.ALBUM,
             texture=None):
         super().__init__()
 
         self._art_size = art_size
+        self._icon_theme = Gtk.IconTheme.new().get_for_display(
+            widget.get_display())
         self._icon_type = icon_type
         self._texture = texture
         self._widget = widget


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