[gnome-music/wip/carlosg/tracker3: 40/55] coregrilo: Add a registry property




commit c93169ecbff92ebf385904f9f0d025c67b1f0e38
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]