[gnome-music/wip/jfelder/tracker3-rebased: 31/46] coregrilo: Add a registry property




commit 151bd56c086b817444b53442df649d5b692d5c50
Author: Jean Felder <jfelder src gnome org>
Date:   Sat Nov 23 13:57:13 2019 +0100

    coregrilo: Add a registry property
    
    This property will be used by the new Grilo Wrappers.

 gnomemusic/coregrilo.py | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index b4d0312d..fe09f9a6 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -111,6 +111,16 @@ class CoreGrilo(GObject.GObject):
 
         weakref.finalize(self, Grl.deinit)
 
+    @GObject.Property(
+        type=Grl.Registry, default=None, flags=GObject.ParamFlags.READABLE)
+    def registry(self):
+        """Get Grilo Registry.
+
+        :returns: the Grilo Registry
+        :rtype: Grl.Registry
+        """
+        return self._registry
+
     def _on_tracker_available_changed(self, klass, value):
         new_state = self._tracker_wrapper.props.tracker_available
         # FIXME:No removal support yet.


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