[gnome-music/wip/mschraal/gtk4-v2: 55/56] coredisc: Add listitemfactory hack




commit e4b36b86abce2a50612878fd8061de47719142b1
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Apr 25 16:02:59 2021 +0200

    coredisc: Add listitemfactory hack

 gnomemusic/coredisc.py | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gnomemusic/coredisc.py b/gnomemusic/coredisc.py
index 614cc2b48..2c6c45824 100644
--- a/gnomemusic/coredisc.py
+++ b/gnomemusic/coredisc.py
@@ -29,6 +29,9 @@ import gnomemusic.utils as utils
 
 class CoreDisc(GObject.GObject):
 
+    __gtype_name__ = "CoreDisc"
+
+    coredisc = GObject.Property(type=object, default=None)
     disc_nr = GObject.Property(type=int, default=0)
     duration = GObject.Property(type=int, default=None)
     media = GObject.Property(type=Grl.Media, default=None)
@@ -42,6 +45,7 @@ class CoreDisc(GObject.GObject):
         """
         super().__init__()
 
+        self.props.coredisc = self
         self._coregrilo = application.props.coregrilo
         self._coremodel = application.props.coremodel
         self._filter_model = None


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